Last active
March 15, 2018 09:04
-
-
Save lobothijau/a78ac7e61cae77be8766dfdde7fe07c3 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/editNama" | |
android:hint="Masukkan Nama Kamu" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" /> | |
<Button | |
android:layout_below="@id/editNama" | |
android:layout_centerHorizontal="true" | |
android:id="@+id/btnMasuk" | |
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:id="@+id/textNama" | |
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