10天冲刺-day3
?xml version="1.0" encoding="utf-8"?> <androidx.appcompat.widget.LinearLayoutCompat 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:orientation="vertical" android:layout_height="match_parent" tools:context=".LoginActivity"> <View android:layout_width="match_parent" android:background="@color/my_light_primary" android:layout_height="100dp"/> <ImageView android:layout_width="match_parent" android:scaleType="centerCrop" android:src="@mipmap/img_login_logo" android:layout_height="200dp"/> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:textSize="20sp" android:textStyle="bold" android:layout_margin="20dp" android:textColor="#333" android:text="登录"/> <androidx.appcompat.widget.LinearLayoutCompat android:layout_width="match_parent" android:layout_margin="26dp" android:layout_height="wrap_content"> </androidx.appcompat.widget.LinearLayoutCompat> <androidx.appcompat.widget.LinearLayoutCompat android:layout_marginTop="10dp" android:layout_width="match_parent" android:background="@drawable/login_et_bg" android:layout_height="50dp" android:paddingLeft="10dp" android:paddingRight="10dp"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:src="@drawable/baseline_account_box_24" /> <EditText android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="10dp" android:background="@null" android:hint="请输入密码" android:textSize="14sp" /> </androidx.appcompat.widget.LinearLayoutCompat> <androidx.appcompat.widget.LinearLayoutCompat android:layout_width="match_parent" android:background="@drawable/login_et_bg" android:layout_height="50dp" android:paddingLeft="10dp" android:paddingRight="10dp"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:src="@drawable/baseline_https_24" /> <EditText android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="10dp" android:background="@null" android:hint="请输入密码" android:inputType="textPassword" android:textSize="14sp" /> </androidx.appcompat.widget.LinearLayoutCompat> <TextView android:layout_marginTop="10dp" android:layout_gravity="right" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="@color/my_light_primary" android:text="还未注册?"/> <Button android:layout_width="match_parent" android:text="登录" android:layout_marginTop="20dp" android:layout_height="50dp"/> </androidx.appcompat.widget.LinearLayoutCompat>
今天在b站搜索部分快递界面的UI设计的相关信息,并找到了较为详细的教程,所以我决定以此为基础进行前端项目的展开
浙公网安备 33010602011771号