feat:完成登录页UI微调整

This commit is contained in:
max
2024-04-07 14:29:16 +08:00
parent bf133e5dc6
commit df0b246062
10 changed files with 32 additions and 12 deletions

View File

@@ -151,7 +151,7 @@ public class LoginPasswordActivity extends BaseActivity {
tvAccountLogin.setOnClickListener(v -> {
ivAccountIndicator.setVisibility(View.VISIBLE);
ivCodeIndicator.setVisibility(View.GONE);
tvAccountLogin.setTextColor(ContextCompat.getColor(this, R.color.color_1E1E1F));
tvAccountLogin.setTextColor(ContextCompat.getColor(this, R.color.black));
tvCodeLogin.setTextColor(ContextCompat.getColor(this, R.color.color_84868A));
llAccountLogin.setVisibility(View.VISIBLE);
llSmsLogin.setVisibility(View.GONE);
@@ -160,7 +160,7 @@ public class LoginPasswordActivity extends BaseActivity {
ivAccountIndicator.setVisibility(View.GONE);
ivCodeIndicator.setVisibility(View.VISIBLE);
tvAccountLogin.setTextColor(ContextCompat.getColor(this, R.color.color_84868A));
tvCodeLogin.setTextColor(ContextCompat.getColor(this, R.color.color_1E1E1F));
tvCodeLogin.setTextColor(ContextCompat.getColor(this, R.color.black));
llAccountLogin.setVisibility(View.GONE);
llSmsLogin.setVisibility(View.VISIBLE);
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:startColor="#70E9FF" android:centerColor="#AE87FF" android:endColor="#FF5CE1"/>
<corners android:radius="23dp" />
</shape>

View File

@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F7F7F7">
android:background="#FFFFFF">
<ImageView
android:id="@+id/iv_top"
@@ -32,7 +32,7 @@
android:gravity="center_horizontal"
android:paddingVertical="10dp"
android:text="@string/account_login"
android:textColor="@color/color_1E1E1E"
android:textColor="@color/black"
android:textSize="@dimen/sp_16"
android:textStyle="bold"
app:layout_constraintEnd_toStartOf="@+id/tv_code_login"
@@ -94,7 +94,7 @@
android:layout_marginStart="@dimen/dp_36"
android:layout_marginTop="@dimen/dp_22"
android:layout_marginEnd="@dimen/dp_36"
android:background="@drawable/base_shape_ffffff_26dp"
android:background="@drawable/base_shape_f3f5fa_26dp"
android:baselineAligned="true">
<com.google.android.material.textfield.TextInputEditText
@@ -121,7 +121,7 @@
android:layout_marginStart="@dimen/dp_36"
android:layout_marginTop="@dimen/dp_20"
android:layout_marginEnd="@dimen/dp_36"
android:background="@drawable/base_shape_ffffff_26dp"
android:background="@drawable/base_shape_f3f5fa_26dp"
android:baselineAligned="true">
<com.google.android.material.textfield.TextInputEditText
@@ -188,7 +188,7 @@
android:layout_marginStart="@dimen/dp_36"
android:layout_marginTop="@dimen/dp_22"
android:layout_marginEnd="@dimen/dp_36"
android:background="@drawable/base_shape_ffffff_26dp"
android:background="@drawable/base_shape_f3f5fa_26dp"
android:gravity="center_vertical">
<androidx.appcompat.widget.AppCompatTextView
@@ -227,7 +227,7 @@
android:layout_marginStart="@dimen/dp_36"
android:layout_marginTop="@dimen/dp_20"
android:layout_marginEnd="@dimen/dp_36"
android:background="@drawable/base_shape_ffffff_26dp"
android:background="@drawable/base_shape_f3f5fa_26dp"
android:gravity="center_vertical">
<androidx.appcompat.widget.AppCompatEditText
@@ -295,7 +295,7 @@
android:layout_marginStart="@dimen/dp_36"
android:layout_marginTop="@dimen/dp_10"
android:layout_marginEnd="@dimen/dp_36"
android:background="@drawable/base_shape_ffffff_26dp"
android:background="@drawable/base_shape_f3f5fa_26dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/barrier_login_body_bottom">
@@ -314,6 +314,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Google"
android:textStyle="bold"
android:textColor="@color/black"
android:textSize="@dimen/dp_16" />
</FrameLayout>

View File

@@ -9,7 +9,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="@drawable/bg_theme_top"
app:layout_constraintDimensionRatio="375:178"
app:layout_constraintDimensionRatio="375:91"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout

View File

@@ -10,7 +10,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="@drawable/bg_theme_top"
app:layout_constraintDimensionRatio="375:178"
app:layout_constraintDimensionRatio="375:91"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout

View File

@@ -3,6 +3,6 @@
<item android:drawable="@drawable/base_shape_theme_26dp" android:state_pressed="true" />
<item android:drawable="@drawable/base_shape_theme_26dp" android:state_focused="true" />
<item android:drawable="@drawable/base_shape_theme_26dp" android:state_enabled="true" />
<item android:drawable="@drawable/base_shape_e6e6e6_26dp" android:state_enabled="false" />
<item android:drawable="@drawable/base_shape_theme_unselected_26dp" android:state_enabled="false" />
</selector>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#F3F5FA" />
<corners android:radius="26dp" />
</shape>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:startColor="#B7F2FF" android:centerColor="#D5C1FF" android:endColor="#FDACF1"/>
<corners android:radius="26dp" />
</shape>