Skip to content

Instantly share code, notes, and snippets.

@leonguyen
Last active December 15, 2015 21:28
Show Gist options
  • Select an option

  • Save leonguyen/5325531 to your computer and use it in GitHub Desktop.

Select an option

Save leonguyen/5325531 to your computer and use it in GitHub Desktop.
Android Lab: Table Layout - Defining an XML Layout
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TableRow>
<TextView
android:padding="3dip"
android:text="Open" />
<TextView
android:padding="3dip"
android:gravity="right"
android:text="Ctrl-O" />
</TableRow>
<TableRow>
<TextView
android:padding="3dip"
android:text="Save As" />
<TextView
android:gravity="right"
android:padding="3dip"
android:text="Ctrl-Shift-S" />
</TableRow>
</TableLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment