Horizontal and vertical scrollbar in Android with tablelayout?

PrashantAdesara picture PrashantAdesara · Nov 15, 2010 · Viewed 11.2k times · Source

Please help me if you know how to add both scrollbar.
First of all i clear to all.
I added both scroll bar in tablelayout but main problem is i m using dynamic data for filling tablerow. So, if there is only one record so horizontal scroll view top after the data. but i want to show horizontal in bottom and also show vertical.


Thanks
Prashant

Answer

sanjay picture sanjay · Dec 29, 2010

Use this code..

<ScrollView
android:id="@+id/scrllvwNo1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
//TextView
//Button
</ScrollView>
</LinearLayout>