Advertisement
Guest User

layout

a guest
Feb 14th, 2014
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.25 KB | None | 0 0
  1.     <TableLayout
  2.        android:layout_width="match_parent"
  3.        android:layout_height="match_parent"
  4.        android:layout_alignParentTop="true"
  5.        android:layout_centerHorizontal="true" >
  6.  
  7.         <TableRow
  8.            android:id="@+id/tableRow1"
  9.            android:layout_width="match_parent"
  10.            android:layout_height="wrap_content" >
  11.  
  12.             <TextView
  13.                android:id="@+id/nameP1"
  14.                android:layout_width="0dp"
  15.                android:layout_height="wrap_content"
  16.                android:layout_weight="1"
  17.                android:gravity="center"
  18.                android:hint="Player 1"
  19.                android:textAppearance="?android:attr/textAppearanceLarge"
  20.                android:textColor="@android:color/black"
  21.                android:textSize="25sp" />
  22.  
  23.             <TextView
  24.                android:id="@+id/nameP2"
  25.                android:layout_width="0dp"
  26.                android:layout_height="wrap_content"
  27.                android:layout_weight="1"
  28.                android:gravity="center"
  29.                android:hint="Player2"
  30.                android:textAppearance="?android:attr/textAppearanceLarge"
  31.                android:textColor="@android:color/black"
  32.                android:textSize="25sp" />
  33.         </TableRow>
  34.  
  35.         <TableRow
  36.            android:id="@+id/tableRow2"
  37.            android:layout_width="match_parent"
  38.            android:layout_height="wrap_content" >
  39.  
  40.             <ListView
  41.                android:id="@+id/listView1"
  42.                android:layout_width="wrap_content"
  43.                android:layout_height="match_parent"
  44.                android:layout_weight="1"
  45.                android:gravity="center"
  46.                android:layout_gravity="center"
  47.                android:textAlignment="center" >
  48.             </ListView>
  49.  
  50.             <ListView
  51.                android:id="@+id/listView2"
  52.                android:layout_width="wrap_content"
  53.                android:layout_height="match_parent"
  54.                android:layout_weight="1"
  55.                android:gravity="center"
  56.                android:layout_gravity="center"
  57.                android:textAlignment="center" >
  58.             </ListView>
  59.         </TableRow>
  60.     </TableLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement