Is It Possible To Have Two Table Layout In Android Ui
I need to show two different tables in one UI, i tried for table layout cause it is easy to have table structures through table layout. But i could not have two table layout in one
Solution 1:
Wrap the two TableLayouts
in a LinearLayout
and define android:layout_weight
on the TableLayouts
:
<?xml version="1.0" encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent"><TableLayoutandroid:id="@+id/tableLayout1"android:layout_width="fill_parent"android:layout_height="wrap_content"android:layout_weight="1"android:background="#ff0000" ></TableLayout><TableLayoutandroid:id="@+id/tableLayout2"android:layout_width="fill_parent"android:layout_height="wrap_content"android:layout_weight="1"android:background="#00ff00" ></TableLayout>
Post a Comment for "Is It Possible To Have Two Table Layout In Android Ui"