본문 바로가기

DEVELOPMENT/ANDROID

[android] TableLayout 기본 폼

  1. <TableLayout
  2.        android:layout_width="match_parent"
  3.        android:layout_height="wrap_content">
  4.        
  5.         <TableRow>
  6.             <TextView
  7.                android:layout_width="match_parent"
  8.                android:layout_height="match_parent"
  9.                android:text="1-1"/>
  10.             <TextView
  11.                android:layout_width="match_parent"
  12.                android:layout_height="match_parent"
  13.                android:text="1-2"/>
  14.             <TextView
  15.                android:layout_width="match_parent"
  16.                android:layout_height="match_parent"
  17.                android:text="1-3"/>
  18.         </TableRow>
  19.        
  20.         <TableRow>
  21.             <TextView
  22.                android:layout_width="match_parent"
  23.                android:layout_height="match_parent"
  24.                android:text="2-1"/>
  25.             <TextView
  26.                android:layout_width="match_parent"
  27.                android:layout_height="match_parent"
  28.                android:text="2-2"/>
  29.             <TextView
  30.                android:layout_width="match_parent"
  31.                android:layout_height="match_parent"
  32.                android:text="2-3"/>
  33.         </TableRow>
  34.        
  35.         <TableRow>
  36.             <TextView
  37.                android:layout_width="match_parent"
  38.                android:layout_height="match_parent"
  39.                android:text="3-1"/>
  40.             <TextView
  41.                android:layout_width="match_parent"
  42.                android:layout_height="match_parent"
  43.                android:text="3-2"/>
  44.             <TextView
  45.                android:layout_width="match_parent"
  46.                android:layout_height="match_parent"
  47.                android:text="3-3"/>
  48.         </TableRow>
  49.        
  50.     </TableLayout>