<?xml version="1.0" encoding="utf-8"?>
|
<layout xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<data>
|
<variable
|
name="viewModel"
|
type="com.application.zhangshi_app_android.ui.login.LoginActivityViewModel" />
|
</data>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/color_normal_background"
|
>
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_marginHorizontal="@dimen/dp_30"
|
android:orientation="vertical"
|
>
|
<ImageView
|
android:id="@+id/iv_bg_home"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_165"
|
android:background="@drawable/bg_login_home"
|
/>
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:cardCornerRadius="@dimen/dp_15"
|
app:cardElevation="0dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="@+id/iv_bg_home"
|
app:layout_constraintStart_toStartOf="@+id/iv_bg_home"
|
app:layout_constraintTop_toBottomOf="@+id/iv_bg_home"
|
>
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<ImageView
|
android:id="@+id/iv_bg_zhang"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dp_20"
|
android:background="@drawable/bg_login_zhang"
|
android:layout_centerHorizontal="true"
|
/>
|
|
<TextView
|
android:id="@+id/tv_welcome"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="@dimen/dp_25"
|
android:text="欢迎来到张氏APP"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_20"
|
android:textStyle="bold"
|
android:layout_centerHorizontal="true"
|
android:layout_marginVertical="@dimen/dp_20"
|
/>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="@dimen/dp_27"
|
android:orientation="vertical"
|
android:layout_below="@id/tv_welcome"
|
>
|
<TextView
|
android:id="@+id/tv_account"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="账号"
|
android:textColor="#FF484848"
|
android:textSize="@dimen/sp_12"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dp_10"
|
android:background="@drawable/shape_ffd9d9d9_8_stroke"
|
android:paddingVertical="@dimen/dp_12"
|
>
|
<EditText
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:layout_marginStart="@dimen/dp_16"
|
android:background="@null"
|
android:hint="请输入账号"
|
android:textColor="#FF093878"
|
android:textSize="@dimen/sp_16"
|
android:textColorHint="#FF8F9090"
|
/>
|
</LinearLayout>
|
<TextView
|
android:id="@+id/tv_password"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dp_20"
|
android:text="密码"
|
android:textColor="#FF484848"
|
android:textSize="@dimen/sp_12"
|
/>
|
<LinearLayout
|
android:id="@+id/layout_password"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dp_7"
|
android:paddingVertical="@dimen/dp_12"
|
android:background="@drawable/shape_ffd9d9d9_8_stroke"
|
android:gravity="center"
|
android:orientation="horizontal"
|
>
|
<EditText
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="@dimen/dp_16"
|
android:layout_weight="1"
|
android:background="@null"
|
android:textColor="#FF093878"
|
android:textSize="@dimen/sp_16"
|
android:hint="请输入账号"
|
android:textColorHint="#FF8F9090"
|
/>
|
|
<ImageView
|
android:layout_width="@dimen/dp_16"
|
android:layout_height="@dimen/dp_20"
|
android:layout_marginEnd="@dimen/dp_12"
|
android:background="@drawable/ic_password_invisable" />
|
</LinearLayout>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="验证码"
|
android:textColor="#FF484848"
|
android:textSize="@dimen/sp_12"
|
android:layout_marginTop="@dimen/dp_20"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginTop="@dimen/dp_10"
|
>
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:background="@drawable/shape_ffd9d9d9_8_stroke"
|
android:paddingVertical="@dimen/dp_12"
|
android:layout_weight="6"
|
>
|
<EditText
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:layout_marginStart="@dimen/dp_16"
|
android:background="@null"
|
android:hint="请输入验证码"
|
android:textColor="#FF093878"
|
android:textSize="@dimen/sp_16"
|
android:textColorHint="#FF8F9090"
|
/>
|
</LinearLayout>
|
|
<ImageView
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="4"
|
android:layout_marginStart="@dimen/dp_6"
|
/>
|
</LinearLayout>
|
<TextView
|
android:id="@+id/tv_login"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/shape_ff093878_10_solid"
|
android:text="注册/登录"
|
android:textColor="@color/white"
|
android:gravity="center"
|
android:paddingVertical="@dimen/dp_10"
|
android:paddingHorizontal="@dimen/dp_77"
|
android:textSize="@dimen/sp_12"
|
android:layout_marginVertical="@dimen/dp_27"
|
android:layout_gravity="center"
|
/>
|
|
|
</LinearLayout>
|
|
|
</RelativeLayout>
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</layout>
|