Created
March 15, 2018 08:57
-
-
Save lobothijau/f179b6b070e6c8bd911ae615044b6a03 to your computer and use it in GitHub Desktop.
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: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" | |
android:orientation="vertical" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" | |
tools:context="com.lobothijau.helloworld.MainActivity" | |
tools:showIn="@layout/activity_main"> | |
<EditText | |
android:id="@+id/inputNama" | |
android:hint="Masukkan Nama Kamu" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" /> | |
<Button | |
android:layout_below="@id/inputNama" | |
android:layout_centerHorizontal="true" | |
android:text="Masuk" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" /> | |
<!-- Khusus untuk font satuannya adalah sp bukan dp --> | |
<TextView | |
android:layout_alignParentBottom="true" | |
android:layout_centerHorizontal="true" | |
android:layout_marginBottom="16dp" | |
android:textSize="30sp" | |
android:text="Nama kamu adalah ... " | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" /> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment