Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GabrielAraujo/23a3e621bbcce892b85a392f2584ad5e to your computer and use it in GitHub Desktop.
Save GabrielAraujo/23a3e621bbcce892b85a392f2584ad5e to your computer and use it in GitHub Desktop.
Exemplo TableLayout
<?xml version="1.0" encoding="utf-8"?>
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="50dp"
android:stretchColumns="1"
tools:context=".MainActivity">
<TableRow>
<TextView android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Usuário"
android:layout_marginRight="10dp"/>
<EditText android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</TableRow>
<View android:layout_width="match_parent"
android:layout_height="50dp"/>
<TableRow>
<TextView android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Senha"
android:layout_marginRight="10dp"/>
<EditText android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</TableRow>
<Button android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="OK"
android:layout_gravity="center"
android:layout_marginTop="50dp"/>
</TableLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment