Skip to content

Instantly share code, notes, and snippets.

@cezar08
Created August 16, 2018 00:32
Show Gist options
  • Select an option

  • Save cezar08/caa89b4fb4ed57a48b4c91af7eefd8d8 to your computer and use it in GitHub Desktop.

Select an option

Save cezar08/caa89b4fb4ed57a48b4c91af7eefd8d8 to your computer and use it in GitHub Desktop.
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView android:id="@+id/txtHelloWorld"
android:text="@string/hello_world"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<EditText android:id="@+id/edtNomeCampo"
android:layout_width="match_parent"
android:inputType="text"
android:layout_below="@id/txtHelloWorld"
android:layout_height="wrap_content"
/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="98dp"
android:id="@+id/btnCliqueAqui"
android:text="Clique aqui" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment