SmartSampleWeightAPP/app/src/main/res/layout/activity_login.xml

150 lines
6.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_vertical"
android:layout_marginStart="160dp"
android:padding="50dp"
android:background="@drawable/btn_border_bg_10_white_1"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="12pt"
android:textColor="#4C81F4"
android:fontFamily="@font/source_han_sans_cn_bold"
android:textFontWeight="1000"
android:text="智能留样称"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="8pt"
android:textColor="#333333"
android:textFontWeight="500"
android:fontFamily="@font/source_han_sans_cn_bold"
android:text="欢迎登录"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginStart="@dimen/config_margin_10dp"
android:textColor="#666666"
android:textFontWeight="400"
android:text="welcome to login in"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:layout_marginTop="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_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:hint="@string/please_enter_username"
android:textColorHint="#999999"
android:text="18158863319"
android:inputType="textPersonName"
android:background="@android:color/transparent"
android:paddingStart="10dp"
android:autofillHints=""
tools:ignore="RtlSymmetry" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/config_margin_20dp"
android:layout_marginEnd="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_marginEnd="5dp"
android:inputType="textPassword"
android:paddingLeft="10dp"
android:text="Bonus$2025" />
<ImageView
android:id="@+id/check_password"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:contentDescription="@string/image_desc"
android:src="@drawable/ic_eye_close" />
</LinearLayout>
<com.xuexiang.xui.widget.layout.XUIButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/config_margin_20dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="@dimen/config_margin_20dp"
android:text="@string/login"
android:textColor="@color/white"
android:textSize="18sp"
android:backgroundTint="#4C81F4"
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>