Need horizontal scrolling on the layout of the table

I have a table that has 3 columns. But due to the large text in the second column, the content comes out of the screen. So I tried to place a horizontal scrollbar. But could not do it.

I am using Android 1.5 as a target.

Table layout XML

<?xml version="1.0" encoding="utf-8"?>

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


    <TableLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_height="fill_parent"
        android:layout_width="fill_parent"
        android:stretchColumns="0,1,2"
        android:id="@+id/tLayout"
        android:scrollbars="horizontal"

        >   
        <TableRow
            android:layout_width="fill_parent">
            <TextView
                android:padding="3dip"
                android:gravity="left"
                android:text="Name"
                />
            <TextView
                android:padding="3dip"
                android:gravity="left"
                android:text="Address"
                />
            <TextView
                android:padding="3dip"
                android:gravity="left"
                android:text="Age"
                />
        </TableRow>
    </TableLayout>
</ScrollView>
+5
source share
1 answer

got a response to this link

How to make your layout scroll both horizontally and vertically?

but still looking for a way to display the horizontal scrollbar along the horizontal scroll function ...

+5
source

All Articles