ANDROID Table Layout

<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
 xmlns:tools="http://schemas.android.com/tools"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:shrinkColumns="0"
 android:stretchColumns="1">
 <TableRow >
   <TextView
      android:text="@string/Red"
      android:background="#cc0000"
      android:layout_width="match_parent"
      android:layout_height="match_parent"/>
   <TextView
      android:text="@string/Green"
      android:background="#00cc00"
      android:layout_width="match_parent"
      android:layout_height="match_parent"/>
   <TextView
      android:text="@string/Blue"
      android:background="#0000aa"
      android:layout_width="match_parent"
      android:layout_height="match_parent"/>
 </TableRow>
 <TableRow >
   <TextView
      android:text="@string/Blue"
      android:background="#0E0EED"
      android:layout_width="match_parent"
      android:layout_height="match_parent"/>
   <TextView
      android:text="@string/Yellow"
      android:background="#FCFC05"
      android:layout_width="match_parent"
      android:layout_height="match_parent"/>
 </TableRow>

</TableLayout>


Comments

Popular posts from this blog

Solution for the fault: "System.Diagnostics.Process.Start is not working on IIS, but working on ASP.NET Development Server"

Solution for "Can not obtain Oracle client information from registry"