Last active
March 7, 2018 08:59
-
-
Save cheankumio/c514740f4e3460fb9dc3d27e6506c082 to your computer and use it in GitHub Desktop.
This file contains hidden or 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:background="#ffb937" | |
tools:context="com.klapper.sampleapp.MainActivity"> | |
<RelativeLayout | |
android:id="@+id/layout2" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="#b9dfb499" | |
android:padding="15dp" | |
tools:visibility="visible"> | |
<TextView | |
android:id="@+id/textView" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_centerHorizontal="true" | |
android:text="這是一個測試APP" | |
android:textSize="24sp" | |
android:textStyle="bold" /> | |
<EditText | |
android:id="@+id/editText" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/textView" | |
android:layout_centerInParent="true" | |
android:ems="10" | |
android:hint="帳號" | |
android:inputType="textPersonName" /> | |
<EditText | |
android:id="@+id/editText2" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/editText" | |
android:layout_centerHorizontal="true" | |
android:ems="10" | |
android:hint="密碼" | |
android:inputType="textPersonName" /> | |
<Button | |
android:id="@+id/button" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_alignEnd="@+id/editText2" | |
android:layout_alignStart="@+id/editText2" | |
android:layout_below="@+id/editText2" | |
android:layout_centerHorizontal="true" | |
android:layout_marginTop="25dp" | |
android:text="進入" /> | |
<Button | |
android:id="@+id/button2" | |
android:layout_width="50dp" | |
android:layout_height="50dp" | |
android:layout_alignParentBottom="true" | |
android:background="@android:drawable/stat_sys_warning" | |
android:onClick="leftbutton" /> | |
<Button | |
android:id="@+id/button3" | |
android:layout_width="50dp" | |
android:layout_height="50dp" | |
android:layout_alignParentBottom="true" | |
android:layout_alignParentRight="true" | |
android:background="@android:drawable/ic_menu_send" | |
android:onClick="rightbutton" /> | |
</RelativeLayout> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment