Raising (Something Like) a Tweet
Here is a simple TableLayout containing those items, one that looks a bit
like the DetailForm from the LunchList tutorial earlier in this book:
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="1"
>
<TableRow>
<TextView android:text="User Name:" />
<EditText android:id="@+id/user" />
</TableRow>
<TableRow>
<TextView android:text="Password:" />
<EditText android:id="@+id/password"
android:password="true"
/>
</TableRow>
<TableRow>
<TextView android:text="Status:" />
<EditText android:id="@+id/status"
android:singleLine="false"
android:gravity="top"
android:lines="5"
android:scrollHorizontally="false"
android:maxLines="5"
android:maxWidth="200sp"
/>
</TableRow>
<Button android:id="@+id/send"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Send"
/>
</TableLayout>
If you compile and reinstall this application, you will see the layout in
action: