I'm making a display in android programmatically and I need scrollview horizontally and vertically. Have been work vertically, but still not work horizontally.
here the 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);
Please help me to make it work horizontally.
Thankyou :)