hanjing před 7 roky
rodič
revize
0b26b72b12

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

@@ -128,15 +128,15 @@ public class FgtPlayGame extends BaseFragment {
 
 
         //绵羊新游、免费道具、绵羊推荐、排行榜
-        int index = 0;
-        for (String name : GAME_CENTER_TYPE_NAME) {
-            GameCenterType item = new GameCenterType();
-            item.setName(name);
-            item.setId(GAME_CENTER_TYPE_ID[index]);
-            item.setIconName(GAME_CENTER_TYPE_ICON_NAME[index]);
-            gameCenterList.add(item);
-            index++;
-        }
+//        int index = 0;
+//        for (String name : GAME_CENTER_TYPE_NAME) {
+//            GameCenterType item = new GameCenterType();
+//            item.setName(name);
+//            item.setId(GAME_CENTER_TYPE_ID[index]);
+//            item.setIconName(GAME_CENTER_TYPE_ICON_NAME[index]);
+//            gameCenterList.add(item);
+//            index++;
+//        }
         play_game_center_type_list.setHasFixedSize(true);
         play_game_center_type_list.setNestedScrollingEnabled(false);
         play_game_center_type_list.setLayoutManager(new GridLayoutManager(SheepApp.getInstance(), 2));

+ 9 - 0
app/src/main/res/drawable/shape_red_stroke_rectangle_3_corner.xml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+    android:shape="rectangle">
+    <corners
+        android:topLeftRadius="10dp" android:topRightRadius="10dp" android:bottomRightRadius="10dp"/>
+    <stroke
+        android:width="1dp"
+        android:color="@color/red_FD2D54" />
+</shape>

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

@@ -34,6 +34,7 @@
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_marginBottom="10dp"
+                android:visibility="gone"
                 android:layout_marginEnd="2dp"
                 android:layout_marginStart="2dp" />
 

+ 18 - 9
app/src/main/res/layout/item_game_focus.xml

@@ -67,35 +67,44 @@
                 android:id="@+id/item_focus_num_tv"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:background="@drawable/shape_red_stroke_rectangle_3_radius"
-                android:padding="2dp"
+                android:background="@drawable/shape_red_stroke_rectangle_3_corner"
+                android:paddingTop="3dp"
+                android:paddingBottom="3dp"
+                android:paddingRight="5dp"
+                android:paddingLeft="5dp"
                 android:textColor="@color/red_FD2D54"
-                android:textSize="10sp" />
+                android:textSize="9sp" />
 
             <TextView
                 android:id="@+id/item_focus_num_tv1"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:layout_marginStart="@dimen/content_padding"
-                android:background="@drawable/shape_red_stroke_rectangle_3_radius"
-                android:padding="2dp"
+                android:background="@drawable/shape_red_stroke_rectangle_3_corner"
+                android:paddingTop="3dp"
+                android:paddingBottom="3dp"
+                android:paddingRight="5dp"
+                android:paddingLeft="5dp"
                 android:singleLine="true"
                 android:text=""
                 android:textColor="@color/red_FD2D54"
-                android:textSize="10sp"
+                android:textSize="9sp"
                 android:visibility="gone" />
 
             <TextView
                 android:id="@+id/item_focus_num_tv2"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:background="@drawable/shape_red_stroke_rectangle_3_radius"
-                android:padding="2dp"
+                android:background="@drawable/shape_red_stroke_rectangle_3_corner"
+                android:paddingTop="3dp"
+                android:paddingBottom="3dp"
+                android:paddingRight="5dp"
+                android:paddingLeft="5dp"
                 android:layout_marginStart="@dimen/content_padding"
                 android:singleLine="true"
                 android:text=""
                 android:textColor="@color/red_FD2D54"
-                android:textSize="10sp"
+                android:textSize="9sp"
                 android:visibility="gone" />
         </LinearLayout>
 

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

@@ -33,6 +33,7 @@
         android:layout_below="@+id/recommend_news_layout"
         android:layout_width="match_parent"
         android:layout_height="10dp"
+        android:visibility="gone"
         android:background="@color/bg_home_color" />
 
 </RelativeLayout>