瀏覽代碼

修复游戏中心顶部皮肤可能没有充满两边的bug

zengjiebin 7 年之前
父節點
當前提交
543058d040
共有 2 個文件被更改,包括 11 次插入5 次删除
  1. 2 0
      app/src/main/res/layout/fgt_find.xml
  2. 9 5
      app/src/main/res/layout/fgt_game_center.xml

+ 2 - 0
app/src/main/res/layout/fgt_find.xml

@@ -6,6 +6,8 @@
     <ImageView
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
+        android:adjustViewBounds="true"
+        android:scaleType="fitXY"
         android:src="@drawable/skin_drawable_selector_bg_home_search"/>
     <android.support.design.widget.TabLayout
         android:id="@+id/indicator"

+ 9 - 5
app/src/main/res/layout/fgt_game_center.xml

@@ -3,10 +3,14 @@
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:background="@color/white">
+
     <ImageView
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:src="@drawable/skin_drawable_selector_bg_home_search"/>
+        android:adjustViewBounds="true"
+        android:scaleType="fitXY"
+        android:src="@drawable/skin_drawable_selector_bg_home_search" />
+
     <RelativeLayout
         android:id="@+id/top_bar"
         android:layout_width="match_parent"
@@ -56,13 +60,13 @@
             style="?android:attr/borderlessButtonStyle"
             android:layout_width="wrap_content"
             android:layout_height="@dimen/content_padding_36"
-            android:layout_alignParentEnd="true"
             android:layout_alignParentTop="true"
+            android:layout_alignParentEnd="true"
             android:background="@color/translate"
             android:gravity="center_vertical|end"
             android:lines="1"
-            android:paddingEnd="17dp"
             android:paddingStart="17dp"
+            android:paddingEnd="17dp"
             android:text="我的礼包"
             android:textColor="@color/tc_home_search_2"
             android:textSize="12sp"
@@ -73,7 +77,7 @@
         android:id="@+id/pager"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:background="@color/white"
-        android:layout_below="@+id/top_bar" />
+        android:layout_below="@+id/top_bar"
+        android:background="@color/white" />
 
 </RelativeLayout>