Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GabrielAraujo/87e4a22d8142ca21db3ec146784ec4f1 to your computer and use it in GitHub Desktop.
Save GabrielAraujo/87e4a22d8142ca21db3ec146784ec4f1 to your computer and use it in GitHub Desktop.
Exemplo FrameLayout e LinearLayout
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
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">
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="50dp">
<TextView android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Usuário"
android:textAlignment="center"
android:gravity="center_horizontal" />
<EditText android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"/>
<TextView android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Senha"
android:textAlignment="center"
android:layout_marginTop="30dp"
android:gravity="center_horizontal" />
<EditText android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:inputType="textPassword"/>
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="OK"
android:layout_gravity="center"
android:layout_marginTop="50dp"/>
</LinearLayout>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment