title: ScrollView Horizontal in UI Programmatically Android
body: <p>I'm making a display in android programmatically and I  need scrollview horizontally and vertically. Have been work vertically, but still  not  work horizontally.</p>
  
  <p>here the code : </p>
  
  <pre><code>    ScrollView sv = new ScrollView(this);
      LinearLayout linearLayout = new LinearLayout(this);
      ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(FILL_PARENT, WRAP_CONTENT);
      linearLayout.setLayoutParams(params);
      linearLayout.setOrientation(VERTICAL); 
  
      linearLayout.addView(tableLayout(count));
      linearLayout.addView(submitButton());
      sv.addView(linearLayout);
      setContentView(sv);
  </code></pre>
  
  <p>Please help me to make it work horizontally. </p>
  
  <p>Thankyou :)</p>