callback
callback

Reputation: 4122

Scrollview inside tablelayout?

I would like to set a scrollview in this table . How can i do it please?

<TableLayout
    android:id="@+id/lunchtableviewing"
    android:layout_width="194dp"
    android:layout_column="0"
    android:layout_columnSpan="4"
    android:layout_row="7" >
</TableLayout>

Upvotes: 0

Views: 1613

Answers (2)

Sarim Sidd
Sarim Sidd

Reputation: 2176

This is how

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent">

<TableLayout
android:id="@+id/lunchtableviewing"
android:layout_width="194dp"
android:layout_column="0"
android:layout_columnSpan="4"
android:layout_row="7" >
</TableLayout>
</ScrollView>

Upvotes: 1

ρяσѕρєя K
ρяσѕρєя K

Reputation: 132982

AFAIK, TableLayout inside ScrollView possible as:

<ScrollView 
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout 
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TableLayout
    android:id="@+id/lunchtableviewing"
    android:layout_width="194dp"
    android:layout_column="0"
    android:layout_columnSpan="4"
    android:layout_row="7" >
</TableLayout>
</LinearLayout>
</ScrollView>

Upvotes: 1

Related Questions