|
@ -1,37 +1,40 @@ |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
|
xmlns:tools="http://schemas.android.com/tools" |
|
|
xmlns:tools="http://schemas.android.com/tools" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
android:background="@drawable/gradient_background" |
|
|
android:background="@drawable/gradient_background" |
|
|
android:fillViewport="true"> |
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout |
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
android:minHeight="@dimen/min_screen_height" |
|
|
|
|
|
android:paddingStart="32dp" |
|
|
android:paddingStart="32dp" |
|
|
android:paddingEnd="32dp" |
|
|
android:paddingEnd="32dp" |
|
|
tools:context=".MainActivity"> |
|
|
tools:context=".MainActivity"> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 登录内容容器 - 垂直居中 --> |
|
|
|
|
|
<LinearLayout |
|
|
|
|
|
android:id="@+id/loginContentContainer" |
|
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
android:orientation="vertical" |
|
|
|
|
|
android:gravity="center_horizontal" |
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/bottomInfoLayout" |
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"> |
|
|
|
|
|
|
|
|
<!-- Logo容器 --> |
|
|
<!-- Logo容器 --> |
|
|
<androidx.cardview.widget.CardView |
|
|
<androidx.cardview.widget.CardView |
|
|
android:id="@+id/logoContainer" |
|
|
android:id="@+id/logoContainer" |
|
|
android:layout_width="120dp" |
|
|
|
|
|
android:layout_height="120dp" |
|
|
|
|
|
android:layout_marginTop="80dp" |
|
|
|
|
|
app:cardCornerRadius="60dp" |
|
|
|
|
|
app:cardElevation="12dp" |
|
|
|
|
|
app:cardBackgroundColor="@color/white" |
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"> |
|
|
|
|
|
|
|
|
android:layout_width="80dp" |
|
|
|
|
|
android:layout_height="80dp" |
|
|
|
|
|
android:layout_marginBottom="40dp" |
|
|
|
|
|
app:cardCornerRadius="40dp" |
|
|
|
|
|
app:cardElevation="8dp" |
|
|
|
|
|
app:cardBackgroundColor="@color/white"> |
|
|
|
|
|
|
|
|
<ImageView |
|
|
<ImageView |
|
|
android:id="@+id/imageViewLogo" |
|
|
android:id="@+id/imageViewLogo" |
|
|
android:layout_width="60dp" |
|
|
|
|
|
android:layout_height="60dp" |
|
|
|
|
|
|
|
|
android:layout_width="40dp" |
|
|
|
|
|
android:layout_height="40dp" |
|
|
android:layout_gravity="center" |
|
|
android:layout_gravity="center" |
|
|
android:src="@drawable/ic_login_logo" |
|
|
android:src="@drawable/ic_login_logo" |
|
|
android:contentDescription="@string/app_logo" /> |
|
|
android:contentDescription="@string/app_logo" /> |
|
@ -41,15 +44,12 @@ |
|
|
<!-- 用户名输入框 --> |
|
|
<!-- 用户名输入框 --> |
|
|
<androidx.cardview.widget.CardView |
|
|
<androidx.cardview.widget.CardView |
|
|
android:id="@+id/usernameCard" |
|
|
android:id="@+id/usernameCard" |
|
|
android:layout_width="0dp" |
|
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_marginTop="80dp" |
|
|
|
|
|
|
|
|
android:layout_marginBottom="16dp" |
|
|
app:cardCornerRadius="25dp" |
|
|
app:cardCornerRadius="25dp" |
|
|
app:cardElevation="4dp" |
|
|
app:cardElevation="4dp" |
|
|
app:cardBackgroundColor="@color/white" |
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/logoContainer"> |
|
|
|
|
|
|
|
|
app:cardBackgroundColor="@color/white"> |
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
<LinearLayout |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
@ -86,15 +86,12 @@ |
|
|
<!-- 密码输入框 --> |
|
|
<!-- 密码输入框 --> |
|
|
<androidx.cardview.widget.CardView |
|
|
<androidx.cardview.widget.CardView |
|
|
android:id="@+id/passwordCard" |
|
|
android:id="@+id/passwordCard" |
|
|
android:layout_width="0dp" |
|
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_marginTop="16dp" |
|
|
|
|
|
|
|
|
android:layout_marginBottom="12dp" |
|
|
app:cardCornerRadius="25dp" |
|
|
app:cardCornerRadius="25dp" |
|
|
app:cardElevation="4dp" |
|
|
app:cardElevation="4dp" |
|
|
app:cardBackgroundColor="@color/white" |
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/usernameCard"> |
|
|
|
|
|
|
|
|
app:cardBackgroundColor="@color/white"> |
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
<LinearLayout |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
@ -124,6 +121,18 @@ |
|
|
android:textColorHint="@color/secondary_text_color" |
|
|
android:textColorHint="@color/secondary_text_color" |
|
|
android:textSize="16sp" /> |
|
|
android:textSize="16sp" /> |
|
|
|
|
|
|
|
|
|
|
|
<ImageView |
|
|
|
|
|
android:id="@+id/imageViewPasswordToggle" |
|
|
|
|
|
android:layout_width="24dp" |
|
|
|
|
|
android:layout_height="24dp" |
|
|
|
|
|
android:src="@drawable/ic_eye_closed" |
|
|
|
|
|
android:layout_marginStart="8dp" |
|
|
|
|
|
android:clickable="true" |
|
|
|
|
|
android:focusable="true" |
|
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless" |
|
|
|
|
|
android:padding="4dp" |
|
|
|
|
|
android:contentDescription="密码显示切换" /> |
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView> |
|
|
</androidx.cardview.widget.CardView> |
|
@ -131,32 +140,25 @@ |
|
|
<!-- 提示文字 --> |
|
|
<!-- 提示文字 --> |
|
|
<TextView |
|
|
<TextView |
|
|
android:id="@+id/textViewHint" |
|
|
android:id="@+id/textViewHint" |
|
|
android:layout_width="0dp" |
|
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_marginTop="16dp" |
|
|
|
|
|
|
|
|
android:layout_marginBottom="32dp" |
|
|
android:text="登录账号密码请从PC端后台管理【设备运营管理平台管理】里获取" |
|
|
android:text="登录账号密码请从PC端后台管理【设备运营管理平台管理】里获取" |
|
|
android:textColor="@color/white" |
|
|
android:textColor="@color/white" |
|
|
android:textSize="12sp" |
|
|
|
|
|
|
|
|
android:textSize="11sp" |
|
|
android:gravity="center" |
|
|
android:gravity="center" |
|
|
android:alpha="0.8" |
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/passwordCard" /> |
|
|
|
|
|
|
|
|
android:alpha="0.8" /> |
|
|
|
|
|
|
|
|
<!-- 登录按钮 --> |
|
|
<!-- 登录按钮 --> |
|
|
<androidx.cardview.widget.CardView |
|
|
<androidx.cardview.widget.CardView |
|
|
android:id="@+id/loginButtonCard" |
|
|
android:id="@+id/loginButtonCard" |
|
|
android:layout_width="0dp" |
|
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_marginTop="60dp" |
|
|
|
|
|
app:cardCornerRadius="25dp" |
|
|
app:cardCornerRadius="25dp" |
|
|
app:cardElevation="0dp" |
|
|
app:cardElevation="0dp" |
|
|
app:cardBackgroundColor="@android:color/transparent" |
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/textViewHint"> |
|
|
|
|
|
|
|
|
app:cardBackgroundColor="@android:color/transparent"> |
|
|
|
|
|
|
|
|
<Button |
|
|
|
|
|
|
|
|
<TextView |
|
|
android:id="@+id/buttonLogin" |
|
|
android:id="@+id/buttonLogin" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="50dp" |
|
|
android:layout_height="50dp" |
|
@ -165,54 +167,76 @@ |
|
|
android:textStyle="bold" |
|
|
android:textStyle="bold" |
|
|
android:textColor="@color/white" |
|
|
android:textColor="@color/white" |
|
|
android:background="@drawable/gradient_button_selector" |
|
|
android:background="@drawable/gradient_button_selector" |
|
|
android:elevation="0dp" |
|
|
|
|
|
android:stateListAnimator="@null" /> |
|
|
|
|
|
|
|
|
android:gravity="center" |
|
|
|
|
|
android:clickable="true" |
|
|
|
|
|
android:focusable="true" |
|
|
|
|
|
android:elevation="0dp" /> |
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView> |
|
|
</androidx.cardview.widget.CardView> |
|
|
|
|
|
|
|
|
<!-- 版本信息 --> |
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 底部信息区域 --> |
|
|
<LinearLayout |
|
|
<LinearLayout |
|
|
|
|
|
android:id="@+id/bottomInfoLayout" |
|
|
android:layout_width="0dp" |
|
|
android:layout_width="0dp" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_marginBottom="20dp" |
|
|
|
|
|
android:orientation="horizontal" |
|
|
|
|
|
|
|
|
android:layout_marginBottom="12dp" |
|
|
|
|
|
android:orientation="vertical" |
|
|
|
|
|
android:gravity="center" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
app:layout_constraintStart_toStartOf="parent"> |
|
|
app:layout_constraintStart_toStartOf="parent"> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 设备ID --> |
|
|
<TextView |
|
|
<TextView |
|
|
android:layout_width="0dp" |
|
|
|
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
android:text="设备ID: c9cb00145a2ac56f" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
|
android:textSize="10sp" |
|
|
|
|
|
android:alpha="1.0" |
|
|
|
|
|
android:layout_marginBottom="4dp" /> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 版本和重启 --> |
|
|
|
|
|
<LinearLayout |
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
android:orientation="horizontal" |
|
|
|
|
|
android:gravity="center"> |
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
|
android:id="@+id/textRestart" |
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_weight="1" |
|
|
|
|
|
android:text="重启设备" |
|
|
android:text="重启设备" |
|
|
android:textColor="@color/white" |
|
|
android:textColor="@color/white" |
|
|
android:textSize="12sp" |
|
|
|
|
|
android:alpha="0.7" /> |
|
|
|
|
|
|
|
|
android:textSize="10sp" |
|
|
|
|
|
android:alpha="1.0" |
|
|
|
|
|
android:clickable="true" |
|
|
|
|
|
android:focusable="true" |
|
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless" |
|
|
|
|
|
android:padding="8dp" /> |
|
|
|
|
|
|
|
|
|
|
|
<View |
|
|
|
|
|
android:layout_width="1dp" |
|
|
|
|
|
android:layout_height="12dp" |
|
|
|
|
|
android:layout_marginStart="8dp" |
|
|
|
|
|
android:layout_marginEnd="8dp" |
|
|
|
|
|
android:background="@color/white" |
|
|
|
|
|
android:alpha="0.3" /> |
|
|
|
|
|
|
|
|
<TextView |
|
|
<TextView |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:text="Version 1.8.3.9" |
|
|
android:text="Version 1.8.3.9" |
|
|
android:textColor="@color/white" |
|
|
android:textColor="@color/white" |
|
|
android:textSize="12sp" |
|
|
|
|
|
android:alpha="0.7" /> |
|
|
|
|
|
|
|
|
android:textSize="10sp" |
|
|
|
|
|
android:alpha="1.0" /> |
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
android:layout_marginBottom="4dp" |
|
|
|
|
|
android:text="本机设备ID:c9cb00145a2ac56f" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
|
android:textSize="12sp" |
|
|
|
|
|
android:alpha="0.7" |
|
|
|
|
|
android:gravity="end" |
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/linearLayout" |
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
android:id="@+id/linearLayout" /> |
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |
|
|
|
|
|
|
|
|
|
|
|
</ScrollView> |
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |