131 lines
5.7 KiB
XML
131 lines
5.7 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
||
|
|
~ Copyright (C) 2019 xuexiangjys(xuexiangjys@163.com)
|
||
|
|
~
|
||
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
|
~ you may not use this file except in compliance with the License.
|
||
|
|
~ You may obtain a copy of the License at
|
||
|
|
~
|
||
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
~
|
||
|
|
~ Unless required by applicable law or agreed to in writing, software
|
||
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
|
~ See the License for the specific language governing permissions and
|
||
|
|
~ limitations under the License.
|
||
|
|
~
|
||
|
|
-->
|
||
|
|
|
||
|
|
<FrameLayout 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:background="@drawable/ic_login_bg"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="500dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:padding="50dp"
|
||
|
|
android:background="@drawable/btn_border_bg_10_60ffffff"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_width="120dp"
|
||
|
|
android:layout_height="120dp"
|
||
|
|
android:contentDescription="@string/image_desc"
|
||
|
|
android:src="@drawable/ic_login_logo"/>
|
||
|
|
<TextView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:textSize="28sp"
|
||
|
|
android:layout_marginTop="10dp"
|
||
|
|
android:textFontWeight="1000"
|
||
|
|
android:text="@string/app_name"/>
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginLeft="10dp"
|
||
|
|
android:layout_marginRight="10dp"
|
||
|
|
android:layout_marginTop="30dp"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:background="@drawable/edit_text_bg"
|
||
|
|
android:padding="10dp">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:layout_width="24dp"
|
||
|
|
android:layout_height="24dp"
|
||
|
|
android:layout_gravity="center_vertical"
|
||
|
|
android:src="@drawable/ic_person_input"
|
||
|
|
android:contentDescription="@string/image_desc" />
|
||
|
|
|
||
|
|
<EditText
|
||
|
|
android:id="@+id/et_username"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:maxLength="20"
|
||
|
|
android:text="13866134935"
|
||
|
|
android:hint="@string/please_enter_username"
|
||
|
|
android:inputType="textPersonName"
|
||
|
|
android:background="@android:color/transparent"
|
||
|
|
android:paddingLeft="10dp"
|
||
|
|
android:autofillHints="" />
|
||
|
|
</LinearLayout>
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_margin="10dp"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:background="@drawable/edit_text_bg"
|
||
|
|
android:padding="10dp">
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:layout_width="24dp"
|
||
|
|
android:layout_height="24dp"
|
||
|
|
android:layout_gravity="center_vertical"
|
||
|
|
android:src="@drawable/ic_password_input"
|
||
|
|
android:contentDescription="@string/image_desc" />
|
||
|
|
|
||
|
|
<EditText
|
||
|
|
android:id="@+id/et_password"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:autofillHints=""
|
||
|
|
android:background="@android:color/transparent"
|
||
|
|
android:hint="@string/please_enter_password"
|
||
|
|
android:layout_marginRight="5dp"
|
||
|
|
android:inputType="textPassword"
|
||
|
|
android:paddingLeft="10dp"
|
||
|
|
android:text="Bonus$2028" />
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/check_password"
|
||
|
|
android:layout_width="24dp"
|
||
|
|
android:layout_height="24dp"
|
||
|
|
android:layout_gravity="center_vertical"
|
||
|
|
android:src="@drawable/ic_eye_close"
|
||
|
|
android:contentDescription="@string/image_desc" />
|
||
|
|
</LinearLayout>
|
||
|
|
<com.xuexiang.xui.widget.layout.XUIButton
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_margin="10dp"
|
||
|
|
android:text="@string/login"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:backgroundTint="#006e6b"
|
||
|
|
android:id="@+id/btn_login"/>
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_forget_password"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="right"
|
||
|
|
android:text="@string/forgot_password"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:textColor="@color/color_blue"
|
||
|
|
tools:ignore="RtlHardcoded" />
|
||
|
|
</LinearLayout>
|
||
|
|
</FrameLayout>
|