TableLayout - montando um form

Top  Previous  Next

Não tem fonte java

Tela

 

main.xml

 

<?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"

  android:stretchColumns="1" >

 

  <TextView android:text="Cadastro" android:textSize="15dip" android:textColor="#FFFFFFFF"/>

  <View android:layout_height="2dip" android:background="#FF909090" />

   

  <TableRow>

      <TextView android:text="Usuário:" android:padding="3dip" />

      <EditText android:padding="3dip" />

  </TableRow>

   

  <TableRow>

      <TextView android:text="Senha:" android:padding="3dip" />

      <EditText android:padding="3dip" android:password="true" />

  </TableRow>

 

  <TableRow android:gravity="right">

      <Button android:text="Login"/>

  </TableRow>

   

</TableLayout>