feat:完成登录页UI微调整
This commit is contained in:
@@ -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 |
7
app/src/main/res/drawable/base_theme_btn_23.xml
Normal file
7
app/src/main/res/drawable/base_theme_btn_23.xml
Normal 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>
|
@@ -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>
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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>
|
@@ -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>
|
@@ -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>
|
Reference in New Issue
Block a user