Bläddra i källkod

游戏中心界面调整

zengjiebin 7 år sedan
förälder
incheckning
5c5103342f

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

@@ -69,7 +69,7 @@ public class FgtPlayGame extends BaseFragment {
     //绵羊新游、免费道具、绵羊推荐、排行榜
     private List<GameCenterType> gameCenterList = new ArrayList<>();
     public static final String[] GAME_CENTER_TYPE_NAME = {"绵羊新游", "会员推荐", "绵羊推荐", "排行榜"};
-    public static final String[] GAME_CENTER_TYPE_ICON_NAME = {"myxy", "免费道具", "绵羊推荐", "排行榜"};
+    public static final String[] GAME_CENTER_TYPE_ICON_NAME = {"myxy", "hytj", "mytj", "phb"};
     public static final int[] GAME_CENTER_TYPE_ID = {1, 3, 2, -1};//1:绵羊新游 2:绵羊推荐 3:免费道具
     //预下载和tag列表的数据
     private List<ListTypeList<GameEntity, GameListType>> gameEntityListx = new ArrayList<>();

+ 6 - 1
app/src/main/java/com/sheep/gamegroup/module/game/model/GameCenterType.java

@@ -1,5 +1,6 @@
 package com.sheep.gamegroup.module.game.model;
 
+import com.sheep.gamegroup.util.TestUtil;
 import com.sheep.gamegroup.util.ViewUtil;
 
 /**
@@ -37,6 +38,10 @@ public class GameCenterType {
     }
 
     public String getIconUrl() {
-        return ViewUtil.getNetImgByName(iconName);
+        String time = "_201902201537";
+        if(TestUtil.isTest()){
+            return String.format("http://10.8.220.248/shared/other/%s%s.png", iconName, time);
+        }
+        return ViewUtil.getNetImgByName(iconName + time);
     }
 }

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

@@ -24,7 +24,7 @@
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_marginStart="2dp"
-                android:layout_marginEnd="15dp"/>
+                android:layout_marginEnd="2dp"/>
 
             <android.support.v7.widget.RecyclerView
                 android:id="@+id/play_game_act"