Created
June 19, 2021 23:25
-
-
Save GabrielAraujo/bcc566827f93bf13c8c48d119f9a0a1e to your computer and use it in GitHub Desktop.
Exemplo Relative Layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout | |
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" | |
tools:context=".MainActivity"> | |
<TextView android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:text="Usuário" | |
android:layout_marginTop="50dp" | |
android:textAlignment="center" | |
android:id="@+id/lbUsuario"/> | |
<EditText android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="30dp" | |
android:layout_marginLeft="50dp" | |
android:layout_marginRight="50dp" | |
android:id="@+id/txtUsuario" | |
android:layout_below="@id/lbUsuario"/> | |
<TextView android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:text="Senha" | |
android:layout_marginTop="50dp" | |
android:textAlignment="center" | |
android:id="@+id/lbSenha" | |
android:layout_below="@id/txtUsuario"/> | |
<EditText android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="30dp" | |
android:layout_marginLeft="50dp" | |
android:layout_marginRight="50dp" | |
android:id="@+id/txtSenha" | |
android:layout_below="@id/lbSenha"/> | |
<Button android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="OK" | |
android:layout_gravity="center" | |
android:id="@+id/btOk" | |
android:layout_marginTop="50dp" | |
android:layout_below="@+id/txtSenha" | |
android:layout_centerInParent="true"/> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment