標(biāo)題:
約束布局注冊界面xml文件源碼
[打印本頁]
作者:
augus0804
時間:
2020-4-4 17:41
標(biāo)題:
約束布局注冊界面xml文件源碼
<?
xml version
="1.0"
encoding
="utf-8"
?>
<
androidx.constraintlayout.widget.ConstraintLayout
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
="@drawable/mohubackground"
tools
:context
=".RegisterActivity"
>
<
EditText
android
:id
="@+id/email"
android
:layout_width
="wrap_content"
android
:layout_height
="wrap_content"
android
:layout_marginTop
="32dp"
android
:ems
="10"
android
:hint
="
請輸入電子郵箱
"
android
:inputType
="textEmailAddress"
app
:layout_constraintEnd_toEndOf
="parent"
app
:layout_constraintStart_toStartOf
="parent"
app
:layout_constraintTop_toBottomOf
="@+id/phone"
/>
<
TextView
android
:id
="@+id/textView2"
android
:layout_width
="307dp"
android
:layout_height
="72dp"
android
:layout_marginTop
="36dp"
android
:text
="
新用戶注冊
"
android
:textSize
="50sp"
app
:layout_constraintEnd_toEndOf
="parent"
app
:layout_constraintStart_toStartOf
="parent"
app
:layout_constraintTop_toTopOf
="parent"
/>
<
Button
android
:id
="@+id/bt_register"
android
:layout_width
="204dp"
android
:layout_height
="45dp"
android
:layout_marginTop
="64dp"
android
:background
="@drawable/bt_pressed"
android
:text
="
注冊
"
android
:textSize
="20sp"
app
:layout_constraintEnd_toEndOf
="parent"
app
:layout_constraintHorizontal_bias
="0.497"
app
:layout_constraintStart_toStartOf
="parent"
app
:layout_constraintTop_toBottomOf
="@+id/password2"
/>
<
EditText
android
:id
="@+id/phone"
android
:layout_width
="wrap_content"
android
:layout_height
="wrap_content"
android
:layout_marginTop
="80dp"
android
:ems
="10"
android
:hint
="
請輸入手機號
"
android
:inputType
="phone"
app
:layout_constraintEnd_toEndOf
="parent"
app
:layout_constraintStart_toStartOf
="parent"
app
:layout_constraintTop_toBottomOf
="@+id/textView2"
/>
<
EditText
android
:id
="@+id/password"
android
:layout_width
="wrap_content"
android
:layout_height
="wrap_content"
android
:layout_marginTop
="32dp"
android
:ems
="10"
android
:hint
="
請輸入密碼
"
android
:inputType
="textPassword"
app
:layout_constraintEnd_toEndOf
="parent"
app
:layout_constraintStart_toStartOf
="parent"
app
:layout_constraintTop_toBottomOf
="@+id/email"
/>
<
EditText
android
:id
="@+id/password2"
android
:layout_width
="wrap_content"
android
:layout_height
="wrap_content"
android
:layout_marginTop
="32dp"
android
:ems
="10"
android
:hint
="
請確認(rèn)密碼
"
android
:inputType
="textPassword"
app
:layout_constraintEnd_toEndOf
="parent"
app
:layout_constraintStart_toStartOf
="parent"
app
:layout_constraintTop_toBottomOf
="@+id/password"
/>
</
androidx.constraintlayout.widget.ConstraintLayout
>
作者:
augus0804
時間:
2020-4-4 17:43
Android studio
可以在drawable文件夾里把那圖片啥的替換了
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1