Browse Source

修改登录页底部图片pad适配变形问题

Pq 1 year ago
parent
commit
a91034b9f3

+ 1 - 1
usercenter/src/main/res/layout/activity_bind_pwd_layout.xml

@@ -215,9 +215,9 @@
         app:layout_constraintTop_toBottomOf="@+id/view_pw_divide" />
 
     <ImageView
+        android:adjustViewBounds="true"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:scaleType="fitXY"
         android:src="@drawable/bg_login_bottom"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintLeft_toLeftOf="parent"

+ 1 - 1
usercenter/src/main/res/layout/activity_input_code_layout.xml

@@ -86,7 +86,7 @@
     <ImageView
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:scaleType="fitXY"
+        android:adjustViewBounds="true"
         android:src="@drawable/bg_login_bottom"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintLeft_toLeftOf="parent"

+ 1 - 1
usercenter/src/main/res/layout/activity_login.xml

@@ -170,9 +170,9 @@
         app:layout_constraintTop_toTopOf="@+id/cb_privacy" />
 
     <ImageView
+        android:adjustViewBounds="true"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:scaleType="fitXY"
         android:src="@drawable/bg_login_bottom"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintLeft_toLeftOf="parent"

+ 1 - 1
usercenter/src/main/res/layout/activity_verify_code_login.xml

@@ -147,9 +147,9 @@
         tools:text="《用户注册协议》和《隐私政策》" />
 
     <ImageView
+        android:adjustViewBounds="true"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:scaleType="fitXY"
         android:src="@drawable/bg_login_bottom"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintLeft_toLeftOf="parent"