瀏覽代碼

完善首页与游戏首页背景

zengjiebin 7 年之前
父節點
當前提交
f22c338dd4

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/module/game/fragment/FgtPlayGame.java

@@ -119,7 +119,7 @@ public class FgtPlayGame extends BaseFragment {
         play_game_list_x_rv.setHasFixedSize(true);
         play_game_list_x_rv.setNestedScrollingEnabled(false);
         play_game_list_x_rv.setLayoutManager(new LinearLayoutManager(SheepApp.getInstance()));
-        new AdpGameCenter4_3List(gameEntityListx).setShowFirstTop(false).bindToRecyclerView(play_game_list_x_rv);
+        new AdpGameCenter4_3List(gameEntityListx).bindToRecyclerView(play_game_list_x_rv);
 
         refresh.setOnRefreshListener(refreshLayout -> refreshData());
         RefreshUtil.newInstance().publicParameter(refresh, getActivity());

+ 2 - 1
app/src/main/res/layout/fgt_game_center.xml

@@ -15,7 +15,8 @@
         android:id="@+id/top_bar"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_marginTop="20dp">
+        android:background="@color/bg_home_color"
+        android:paddingTop="20dp">
 
         <ImageButton
             android:id="@+id/back_btn"

+ 2 - 2
app/src/main/res/layout/fgt_play_game.xml

@@ -24,14 +24,14 @@
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_marginStart="2dp"
-                android:layout_marginEnd="2dp"/>
+                android:layout_marginEnd="2dp"
+                android:layout_marginBottom="10dp"/>
 
             <include
                 android:id="@+id/hp_refresh_welfare_box"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:visibility="gone"
-                android:layout_marginTop="10dp"
                 layout="@layout/inclue_hp_refresh_welfare_box" />
 
             <android.support.v7.widget.RecyclerView

+ 0 - 1
app/src/main/res/layout/homepage_act_layout.xml

@@ -109,7 +109,6 @@
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:visibility="gone"
-                    android:layout_marginTop="10dp"
                     layout="@layout/inclue_hp_refresh_welfare_box"
                     android:layout_below="@id/home_award_container" />
 

+ 1 - 1
app/src/main/res/layout/include_home_search.xml

@@ -2,7 +2,7 @@
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    android:background="@drawable/skin_drawable_selector_bg_home_search">
+    android:background="@color/bg_home_color">
 
     <View
         android:id="@+id/home_search_top"

+ 4 - 0
app/src/main/res/layout/inclue_hp_refresh_welfare_box.xml

@@ -6,6 +6,10 @@
     android:background="@color/white"
     android:orientation="vertical">
 
+    <View
+        android:layout_width="match_parent"
+        android:layout_height="10dp"
+        android:background="@color/bg_home_color"/>
     <include
         android:id="@+id/hp_game_welfare_entrance"
         android:layout_width="match_parent"