Make Table layout rows scrollable In android

Make Table layout rows scrollable In android

 <TableLayout
            android:id="@+id/tblHeaders"
            android:layout_width="450dp"
            android:layout_height="100dp"
            android:layout_alignParentTop="true"
            android:layout_marginLeft="5dp"
            android:layout_marginTop="5dp" >
     </TableLayout>

  <ScrollView
    android:layout_width="fill_parent"
    android:layout_height="100dp"
    android:background="#FFFFFF" >



    <HorizontalScrollView
        android:layout_width="fill_parent"
        android:layout_height="450dp"
        android:background="#FFFFFF" >

        <TableLayout
            android:id="@+id/tblData"
            android:layout_width="450dp"
            android:layout_height="100dp"
            android:layout_marginLeft="5dp"
            android:layout_marginTop="0dp" >
        </TableLayout>
    </HorizontalScrollView>
</ScrollView>
Note: Adjust height and width of both tables as necessory.

Make Table layout rows scrollable In android Make Table layout rows scrollable In android Reviewed by Anonymous on November 29, 2015 Rating: 5

No comments:

Java Ternary Operator

Java Ternary Operator Java ternary operator is the only conditional operator that takes three operands. Java ternary operator is a one l...

Powered by Blogger.