Just shared
"Tugas Pemrograman Mobile" membuat halaman login
Let's rawk
Screenshoot :
Coding :
<?xml
version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="16dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="16dp"
tools:context="com.example.haris.myapplication.MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Username"
android:layout_marginTop="50px"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Password"
android:layout_marginTop="20px"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="sign in"
android:layout_marginTop="20px"
/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Cencel"
android:layout_marginTop="20px"/>
</LinearLayout>
</RelativeLayout>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="16dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="16dp"
tools:context="com.example.haris.myapplication.MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Username"
android:layout_marginTop="50px"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Password"
android:layout_marginTop="20px"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="sign in"
android:layout_marginTop="20px"
/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Cencel"
android:layout_marginTop="20px"/>
</LinearLayout>
</RelativeLayout>

0 komentar:
Posting Komentar