Browse Source

添加礼包中心两个列表

zengjiebin 7 years ago
parent
commit
df24372d38

+ 3 - 0
app/src/main/AndroidManifest.xml

@@ -991,6 +991,9 @@
             android:name="com.sheep.gamegroup.module.game.activity.ActWelfareSpecialArea"
             android:screenOrientation="portrait"
             android:theme="@style/AppActionTheme" />
+        <activity android:name="com.sheep.gamegroup.module.game.activity.ActGitBagList"
+            android:screenOrientation="portrait"
+            android:theme="@style/AppActionTheme" />
 
         <provider
             android:name=".provider.TokenRenewalProvider"

+ 19 - 0
app/src/main/java/com/sheep/gamegroup/model/api/ApiService.java

@@ -1034,6 +1034,16 @@ public interface ApiService {
      */
     @GET("app/gift_bag")
     Observable<BaseMessage> getGiftBagList(@Query("page") int page, @Query("per_page") int per_page);
+    /**
+     * 游戏礼包
+     */
+    @GET("app/gift_bag")
+    Observable<BaseMessage> getGiftBagListByAppId(@Query("page") int page, @Query("per_page") int per_page, @Query("app_id") int app_id);
+    /**
+     * 游戏礼包
+     */
+    @GET("app/gift_bag")
+    Observable<BaseMessage> getGiftBagListByTagId(@Query("page") int page, @Query("per_page") int per_page, @Query("tag_id") int tag_id);
 
     /**
      * 我的礼包——我的礼包
@@ -1053,6 +1063,15 @@ public interface ApiService {
     Observable<BaseMessage> getGiftBagTag();
 
     /**
+     * 礼包中心-主页游戏组列表
+     */
+    @GET("app/gift_bag/game_group")
+    Observable<BaseMessage> getGiftBagGameGroup();
+
+
+
+
+    /**
      * 获取热门福利
      */
     @GET("app/release_task/hot_welfare")

+ 33 - 0
app/src/main/java/com/sheep/gamegroup/module/game/activity/ActGitBagList.java

@@ -0,0 +1,33 @@
+package com.sheep.gamegroup.module.game.activity;
+
+import android.support.v4.app.Fragment;
+
+import com.sheep.gamegroup.absBase.BaseContainerActivity;
+import com.sheep.gamegroup.module.game.fragment.FgtGiftBagList;
+import com.sheep.gamegroup.module.game.model.GiftTags;
+import com.sheep.gamegroup.util.DataUtil;
+import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
+
+/**
+ * Created by realicing on 2019/4/2.
+ * realicing@sina.com
+ */
+public class ActGitBagList extends BaseContainerActivity {
+
+    private GiftTags data;
+
+    @Override
+    public void initView() {
+        data = DataUtil.getObject(getIntent(), GiftTags.class);
+        super.initView();
+        TitleBarUtils.getInstance().setShowOrHide(this, true)
+                .setTitle(this, data != null ? data.getName() : "礼包列表")
+                .setTitleFinish(this);
+    }
+    @Override
+    protected Fragment initFragment() {
+        if(data != null)
+            return FgtGiftBagList.newInstanceByTagId(data.getId());
+        return new FgtGiftBagList();
+    }
+}

+ 34 - 0
app/src/main/java/com/sheep/gamegroup/module/game/adapter/AdpGiftBagGameGroup.java

@@ -0,0 +1,34 @@
+package com.sheep.gamegroup.module.game.adapter;
+
+import android.support.annotation.Nullable;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import com.chad.library.adapter.base.BaseQuickAdapter;
+import com.chad.library.adapter.base.BaseViewHolder;
+import com.sheep.gamegroup.module.game.model.GameCenterType;
+import com.sheep.gamegroup.module.game.model.GameGroup;
+import com.sheep.gamegroup.module.game.model.GiftTags;
+import com.sheep.gamegroup.util.ViewUtil;
+import com.sheep.jiuyan.samllsheep.R;
+
+import java.util.List;
+/**
+ * Created by realicing on 2019/4/2.
+ * realicing@sina.com
+ * 小绵羊3.5.4新增 -- 礼包中心 游戏组列表
+ */
+public class AdpGiftBagGameGroup extends BaseQuickAdapter<GameGroup, BaseViewHolder> {
+    public AdpGiftBagGameGroup(@Nullable List<GameGroup> data) {
+        super(R.layout.item_gift_bag_game_group, data);
+    }
+
+    @Override
+    protected void convert(BaseViewHolder helper, GameGroup item) {
+        ImageView item_icon_iv = helper.itemView.findViewById(R.id.item_icon_iv);
+        TextView item_name_tv = helper.itemView.findViewById(R.id.item_name_tv);
+
+        ViewUtil.setImage(item_icon_iv, item.getIcon());
+        ViewUtil.setText(item_name_tv, item.getName());
+    }
+}

+ 33 - 0
app/src/main/java/com/sheep/gamegroup/module/game/adapter/AdpGiftBags.java

@@ -0,0 +1,33 @@
+package com.sheep.gamegroup.module.game.adapter;
+
+import android.support.annotation.Nullable;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import com.chad.library.adapter.base.BaseQuickAdapter;
+import com.chad.library.adapter.base.BaseViewHolder;
+import com.sheep.gamegroup.module.game.model.GiftTags;
+import com.sheep.gamegroup.util.ViewUtil;
+import com.sheep.jiuyan.samllsheep.R;
+
+import java.util.List;
+
+/**
+ * Created by realicing on 2019/4/2.
+ * realicing@sina.com
+ * 小绵羊3.5.4新增 -- 礼包中心 4个礼包标签
+ */
+public class AdpGiftBags extends BaseQuickAdapter<GiftTags, BaseViewHolder> {
+    public AdpGiftBags(@Nullable List<GiftTags> data) {
+        super(R.layout.item_game_center_type, data);
+    }
+
+    @Override
+    protected void convert(BaseViewHolder helper, GiftTags item) {
+        ImageView item_gct_bg_iv = helper.itemView.findViewById(R.id.item_gct_bg_iv);
+        TextView item_gct_name_tv = helper.itemView.findViewById(R.id.item_gct_name_tv);
+
+        ViewUtil.setImage(item_gct_bg_iv, item.getIcon());
+        ViewUtil.setText(item_gct_name_tv, item.getName());
+    }
+}

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

@@ -55,7 +55,7 @@ public class FgtGameCenter extends BaseFragment {
         backBtn.setVisibility((getActivity() instanceof ActMain) ? View.GONE : View.VISIBLE);
         TitleFragmentListAdapter mAdapter = new TitleFragmentListAdapter(getChildFragmentManager());
         mAdapter.add(new FgtPlayGame(), "玩转游戏");
-        mAdapter.add(new com.sheep.gamegroup.view.fragment.FgtGiftCenter(), "礼包中心");
+        mAdapter.add(new FgtGiftCenter(), "礼包中心");
         pager.setAdapter(mAdapter);
         indicator.setupWithViewPager(pager);
         CommonUtil.getInstance().reflex(indicator, getActivity(), false, G.WIDTH - G.getRealPix(144));

+ 125 - 0
app/src/main/java/com/sheep/gamegroup/module/game/fragment/FgtGiftBagList.java

@@ -0,0 +1,125 @@
+package com.sheep.gamegroup.module.game.fragment;
+
+import android.os.Bundle;
+import android.support.annotation.Nullable;
+import android.support.v7.widget.RecyclerView;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import com.sheep.gamegroup.event.BigEvent;
+import com.sheep.gamegroup.model.api.ApiService;
+import com.sheep.gamegroup.model.entity.BaseMessage;
+import com.sheep.gamegroup.model.entity.GiftBagApp;
+import com.sheep.gamegroup.util.CommonUtil;
+import com.sheep.gamegroup.view.adapter.GiftCenterAdapter;
+import com.sheep.gamegroup.view.adapter.WelfareAdapter;
+import com.sheep.gamegroup.view.fragment.BaseListFragment2;
+
+import org.greenrobot.eventbus.EventBus;
+import org.greenrobot.eventbus.Subscribe;
+
+import java.util.Locale;
+
+import io.reactivex.Observable;
+import rx.functions.Action1;
+
+/**
+ * Created by realicing on 2019/4/2.
+ * realicing@sina.com
+ * 小绵羊3.5.4新增 -- 礼包中心 礼包列表
+ */
+public class FgtGiftBagList extends BaseListFragment2<GiftBagApp> implements Action1<Integer> {
+
+    private int app_id;
+    private int tag_id;
+
+    public static FgtGiftBagList newInstanceByAppId(int app_id) {
+        FgtGiftBagList fragment = new FgtGiftBagList();
+        Bundle bundle = new Bundle();
+        bundle.putInt("app_id", app_id);
+        fragment.setArguments(bundle);
+        return fragment;
+    }
+
+    public static FgtGiftBagList newInstanceByTagId(int tag_id) {
+        FgtGiftBagList fragment = new FgtGiftBagList();
+        Bundle bundle = new Bundle();
+        bundle.putInt("tag_id", tag_id);
+        fragment.setArguments(bundle);
+        return fragment;
+    }
+
+    @Override
+    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
+        View rootView = super.onCreateView(inflater, container, savedInstanceState);
+        Bundle bundle = getArguments();
+        if (bundle != null) {
+            app_id = bundle.getInt("app_id", 0);
+            tag_id = bundle.getInt("tag_id", 0);
+        }
+        return rootView;
+    }
+    @Override
+    public void onCreate(@Nullable Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        EventBus.getDefault().register(this);
+    }
+
+    @Override
+    protected boolean isFirstGetACache() {
+        return false;
+    }
+
+    @Override
+    public void call(Integer integer) {
+        switch (integer) {
+            case WelfareAdapter.TO_REFRESH:
+                refreshData();
+                break;
+        }
+    }
+
+    @Subscribe
+    public void onEventMainThread(BigEvent event) {
+        CommonUtil.getInstance().setEventResultViewStatus(event, view_list);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        EventBus.getDefault().unregister(this);
+    }
+
+    @Override
+    protected RecyclerView.Adapter getAdapter() {
+        return new GiftCenterAdapter(activity, list, this);
+    }
+
+    @Override
+    protected String getKey(int page, int per_page) {
+        if(app_id > 0){
+            return String.format(Locale.CHINA, "app/gift_bag?page=%d&per_page=%d&app_id=%d", page, per_page, app_id);
+        }
+        if(tag_id > 0){
+            return String.format(Locale.CHINA, "app/gift_bag?page=%d&per_page=%d&tag_id=%d", page, per_page, tag_id);
+        }
+        return String.format(Locale.CHINA, "app/gift_bag?page=%d&per_page=%d", page, per_page);
+    }
+
+    @Override
+    protected Observable<BaseMessage> getApi(ApiService apiService) {
+        if(app_id > 0){
+            return apiService.getGiftBagListByAppId(page, per_page, app_id);
+        }
+        if(tag_id > 0){
+            return apiService.getGiftBagListByTagId(page, per_page, tag_id);
+        }
+        return apiService.getGiftBagList(page, per_page);
+    }
+
+    @Override
+    protected Class<GiftBagApp> getTClass() {
+        return GiftBagApp.class;
+    }
+}

+ 101 - 17
app/src/main/java/com/sheep/gamegroup/module/game/fragment/FgtGiftCenter.java

@@ -1,17 +1,37 @@
 package com.sheep.gamegroup.module.game.fragment;
 
+import android.support.v7.widget.GridLayoutManager;
+import android.support.v7.widget.LinearLayoutManager;
 import android.support.v7.widget.RecyclerView;
 import android.view.View;
 import android.widget.EditText;
 
+import com.chad.library.adapter.base.BaseQuickAdapter;
+import com.scwang.smartrefresh.layout.SmartRefreshLayout;
 import com.sheep.gamegroup.model.entity.BaseMessage;
+import com.sheep.gamegroup.model.entity.GameEntity;
+import com.sheep.gamegroup.model.entity.GameListType;
+import com.sheep.gamegroup.model.entity.ListTypeList;
 import com.sheep.gamegroup.model.util.SheepSubscriber;
+import com.sheep.gamegroup.module.game.adapter.AdpGameCenter4_3List;
+import com.sheep.gamegroup.module.game.adapter.AdpGameCenterType;
+import com.sheep.gamegroup.module.game.adapter.AdpGiftBagGameGroup;
+import com.sheep.gamegroup.module.game.adapter.AdpGiftBags;
+import com.sheep.gamegroup.module.game.model.GameGroup;
+import com.sheep.gamegroup.module.game.model.GiftTags;
 import com.sheep.gamegroup.util.Jump2View;
+import com.sheep.gamegroup.util.ListUtil;
+import com.sheep.gamegroup.util.RefreshUtil;
+import com.sheep.gamegroup.util.TestUtil;
+import com.sheep.gamegroup.util.ViewUtil;
 import com.sheep.jiuyan.samllsheep.R;
 import com.sheep.jiuyan.samllsheep.SheepApp;
 import com.sheep.jiuyan.samllsheep.base.BaseFragment;
 import com.sheep.jiuyan.samllsheep.utils.G;
 
+import java.util.ArrayList;
+import java.util.List;
+
 import butterknife.BindView;
 import io.reactivex.android.schedulers.AndroidSchedulers;
 import io.reactivex.schedulers.Schedulers;
@@ -29,6 +49,8 @@ public class FgtGiftCenter extends BaseFragment{
     RecyclerView fgt_gift_center_x_list;
     @BindView(R.id.fgt_gift_center_input_et)
     EditText fgt_gift_center_input_et;
+    @BindView(R.id.refresh)
+    SmartRefreshLayout refresh;
     @Override
     public int getLayoutId() {
         return R.layout.fgt_gift_center;
@@ -37,30 +59,92 @@ public class FgtGiftCenter extends BaseFragment{
     @Override
     public void onViewCreated() {
         initView();
-        initData();
     }
 
-    private void initData() {
-        SheepApp.getInstance().getNetComponent().getApiService().getGiftBagTag()
-                        .subscribeOn(Schedulers.io())
-                        .observeOn(AndroidSchedulers.mainThread())
-                        .subscribe(new SheepSubscriber<BaseMessage>(SheepApp.getInstance()) {
-                            @Override
-                            public void onNext(BaseMessage baseMessage) {
 
-                            }
+    //绵羊新游、免费道具、绵羊推荐、排行榜
+    private List<GameGroup> gameGroupList = new ArrayList<>();
+    private List<GiftTags> giftTagsList = new ArrayList<>();
+    public void initView() {
+        View wc_all_gift = findViewById(R.id.wc_all_gift);
+        wc_all_gift.setOnClickListener(view -> Jump2View.getInstance().goMyWelfare(getActivity()));
 
-                            @Override
-                            public void onError(BaseMessage baseMessage) {
-                                G.showToast(baseMessage);
-                            }
-                        });
 
+        fgt_gift_center_type_list.setHasFixedSize(true);
+        fgt_gift_center_type_list.setNestedScrollingEnabled(false);
+        fgt_gift_center_type_list.setLayoutManager(new GridLayoutManager(SheepApp.getInstance(), 2));
+        BaseQuickAdapter baseQuickAdapter = new AdpGiftBags(giftTagsList);
+        baseQuickAdapter.bindToRecyclerView(fgt_gift_center_type_list);
+        baseQuickAdapter.setOnItemClickListener((adapter, view, position) -> Jump2View.getInstance().goEntity(ListUtil.getItem(giftTagsList, position)));
+        //x列表
+        fgt_gift_center_x_list.setHasFixedSize(true);
+        fgt_gift_center_x_list.setNestedScrollingEnabled(false);
+        fgt_gift_center_x_list.setLayoutManager(new GridLayoutManager(SheepApp.getInstance(), 4));
+        BaseQuickAdapter gameGroupAdp = new AdpGiftBagGameGroup(gameGroupList);
+        gameGroupAdp.bindToRecyclerView(fgt_gift_center_x_list);
+        gameGroupAdp.setOnItemClickListener((adapter, view, position) -> Jump2View.getInstance().goEntity(ListUtil.getItem(gameGroupList, position)));
+
+        refresh.setOnRefreshListener(refreshLayout -> refreshData());
+        RefreshUtil.newInstance().publicParameter(refresh, getActivity());
+        refresh.autoRefresh();
     }
 
-    public void initView() {
-        View wc_all_gift = findViewById(R.id.wc_all_gift);
-        wc_all_gift.setOnClickListener(view -> Jump2View.getInstance().goMyWelfare(getActivity()));
+    private void refreshData() {
+        initTypeList();
+        initXList();
     }
 
+
+    private void initTypeList() {
+        giftTagsList.clear();
+        ViewUtil.notifyDataSetChanged(fgt_gift_center_type_list);
+        SheepApp.getInstance().getNetComponent().getApiService().getGiftBagTag()
+                .subscribeOn(Schedulers.io())
+                .observeOn(AndroidSchedulers.mainThread())
+                .subscribe(new SheepSubscriber<BaseMessage>(SheepApp.getInstance()) {
+                    @Override
+                    public void onNext(BaseMessage baseMessage) {
+                        List<GiftTags> gameGroups = baseMessage.getDataList(GiftTags.class);
+                        ListUtil.addAll(giftTagsList, gameGroups);
+                        ViewUtil.notifyDataSetChanged(fgt_gift_center_type_list);
+                        notifyDataSetChanged();
+                    }
+
+                    @Override
+                    public void onError(BaseMessage baseMessage) {
+                        if(TestUtil.isDev())
+                            G.showToast(baseMessage);
+                    }
+                });
+    }
+
+    private void initXList() {
+        gameGroupList.clear();
+        ViewUtil.notifyDataSetChanged(fgt_gift_center_x_list);
+        SheepApp.getInstance().getNetComponent().getApiService().getGiftBagGameGroup()
+                .subscribeOn(Schedulers.io())
+                .observeOn(AndroidSchedulers.mainThread())
+                .subscribe(new SheepSubscriber<BaseMessage>(SheepApp.getInstance()) {
+                    @Override
+                    public void onNext(BaseMessage baseMessage) {
+                        List<GameGroup> gameGroups = baseMessage.getDataList(GameGroup.class);
+                        ListUtil.addAll(gameGroupList, gameGroups);
+                        ViewUtil.notifyDataSetChanged(fgt_gift_center_x_list);
+                        notifyDataSetChanged();
+                    }
+
+                    @Override
+                    public void onError(BaseMessage baseMessage) {
+                        if(TestUtil.isDev())
+                            G.showToast(baseMessage);
+                        notifyDataSetChanged();
+                    }
+                });
+    }
+
+    private void notifyDataSetChanged() {
+        if (refresh != null) {
+            refresh.finishRefresh();
+        }
+    }
 }

+ 80 - 0
app/src/main/java/com/sheep/gamegroup/module/game/model/GiftTags.java

@@ -0,0 +1,80 @@
+package com.sheep.gamegroup.module.game.model;
+
+/**
+ * Created by realicing on 2019/4/2.
+ * realicing@sina.com
+ * 小绵羊3.5.4新增 -- 礼包中心 4个标签
+ *
+ * created_at:	integer ($int64) 创建时间
+ * icon:	string 图标地址
+ * id:	integer ($int64)
+ * name:	string 标签名称
+ * sort:	integer ($int64) 排序值:倒序
+ * status:	integer ($int64) 状态 1:显示 2:不显示
+ * updated_at:	integer ($int64) 更新时间
+ */
+public class GiftTags {
+    private int created_at;
+    private String icon;
+    private String name;
+    private int id;
+    private int sort;
+    private int status;
+    private int updated_at;
+
+    public int getCreated_at() {
+        return created_at;
+    }
+
+    public void setCreated_at(int created_at) {
+        this.created_at = created_at;
+    }
+
+    public String getIcon() {
+        return icon;
+    }
+
+    public void setIcon(String icon) {
+        this.icon = icon;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public int getId() {
+        return id;
+    }
+
+    public void setId(int id) {
+        this.id = id;
+    }
+
+    public int getSort() {
+        return sort;
+    }
+
+    public void setSort(int sort) {
+        this.sort = sort;
+    }
+
+    public int getStatus() {
+        return status;
+    }
+
+    public void setStatus(int status) {
+        this.status = status;
+    }
+
+    public int getUpdated_at() {
+        return updated_at;
+    }
+
+    public void setUpdated_at(int updated_at) {
+        this.updated_at = updated_at;
+    }
+}

+ 17 - 0
app/src/main/java/com/sheep/gamegroup/util/Jump2View.java

@@ -33,6 +33,7 @@ import com.sheep.gamegroup.model.entity.DiscoveryVideo;
 import com.sheep.gamegroup.model.entity.GameEntity;
 import com.sheep.gamegroup.model.entity.GameListTag;
 import com.sheep.gamegroup.model.entity.GameListType;
+import com.sheep.gamegroup.model.entity.GiftBag;
 import com.sheep.gamegroup.model.entity.HomeListEntity;
 import com.sheep.gamegroup.model.entity.IDBean;
 import com.sheep.gamegroup.model.entity.LoginEntity;
@@ -58,11 +59,13 @@ import com.sheep.gamegroup.module.game.activity.ActGameCenterType;
 import com.sheep.gamegroup.module.game.activity.ActGameGroupMore;
 import com.sheep.gamegroup.module.game.activity.ActGameGroupOrGameDetail;
 import com.sheep.gamegroup.module.game.activity.ActGameRank;
+import com.sheep.gamegroup.module.game.activity.ActGitBagList;
 import com.sheep.gamegroup.module.game.activity.ActMyGameList;
 import com.sheep.gamegroup.module.game.activity.ActSearchGameGroup;
 import com.sheep.gamegroup.module.game.activity.ActWelfareSpecialArea;
 import com.sheep.gamegroup.module.game.model.GameCenterType;
 import com.sheep.gamegroup.module.game.model.GameGroup;
+import com.sheep.gamegroup.module.game.model.GiftTags;
 import com.sheep.gamegroup.module.game.model.SearchResp;
 import com.sheep.gamegroup.module.login.ChangePasswordAct;
 import com.sheep.gamegroup.module.login.LoginAct;
@@ -3000,4 +3003,18 @@ public class Jump2View {
         Intent intent = new Intent(activity, ActWelfareSpecialArea.class);
         activity.startActivity(intent);
     }
+
+    /**
+     * 小绵羊3.5.4新增 -- 礼包中心 4个标签
+     */
+    public void goEntity(GiftTags item) {
+        if(item == null){
+            G.showToast(R.string.please_contact_customer_service);
+            return;
+        }
+        Activity activity = SheepApp.getInstance().getCurrentActivity();
+        Intent intent = new Intent(activity, ActGitBagList.class);
+        DataUtil.putObject(intent, item);
+        activity.startActivity(intent);
+    }
 }

+ 3 - 1
app/src/main/res/layout/fgt_gift_center.xml

@@ -55,7 +55,9 @@
             <android.support.v7.widget.RecyclerView
                 android:id="@+id/fgt_gift_center_type_list"
                 android:layout_width="match_parent"
-                android:layout_height="wrap_content"/>
+                android:layout_height="wrap_content"
+                android:layout_marginStart="7dp"
+                android:layout_marginEnd="9dp"/>
 
             <android.support.v7.widget.RecyclerView
                 android:id="@+id/fgt_gift_center_x_list"

+ 4 - 3
app/src/main/res/layout/item_game_center_type.xml

@@ -3,9 +3,9 @@
     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    android:layout_marginStart="15dp"
-    android:layout_marginEnd="6dp"
-    android:minHeight="52dp">
+    android:layout_marginTop="20dp"
+    android:layout_marginStart="9dp"
+    android:layout_marginEnd="9dp">
 
     <ImageView
         android:id="@+id/item_gct_bg_iv"
@@ -21,6 +21,7 @@
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_marginStart="15dp"
+        android:visibility="gone"
         android:text="绵羊新游"
         android:textColor="#ffffffff"
         android:textSize="16sp"

+ 31 - 0
app/src/main/res/layout/item_gift_bag_game_group.xml

@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:layout_gravity="center"
+    android:orientation="vertical"
+    android:paddingTop="16dp"
+    android:paddingBottom="16dp">
+
+    <ImageView
+        android:id="@+id/item_icon_iv"
+        android:layout_width="64dp"
+        android:layout_height="64dp"
+        android:layout_gravity="center"
+        android:layout_marginStart="8dp"
+        android:layout_marginEnd="8dp"
+        android:src="@mipmap/sheep_logo" />
+
+    <TextView
+        android:id="@+id/item_name_tv"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginTop="8dp"
+        android:ellipsize="end"
+        android:gravity="center"
+        android:paddingStart="4dp"
+        android:paddingEnd="4dp"
+        android:singleLine="true"
+        android:textColor="#333333"
+        android:textSize="13sp" />
+</LinearLayout>

BIN
app/src/main/res/mipmap-xxhdpi/haohualb.png


BIN
app/src/main/res/mipmap-xxhdpi/haohualb_c.png


BIN
app/src/main/res/mipmap-xxhdpi/libaotj.png


BIN
app/src/main/res/mipmap-xxhdpi/libaotj_c.png


BIN
app/src/main/res/mipmap-xxhdpi/remenlb.png


BIN
app/src/main/res/mipmap-xxhdpi/remenlb_c.png


BIN
app/src/main/res/mipmap-xxhdpi/xinshoulb.png


BIN
app/src/main/res/mipmap-xxhdpi/xinshoulb_c.png