|
@@ -25,10 +25,10 @@ public class AdpGameGroupGameCompare extends BaseQuickAdapter<Applications, Base
|
|
|
super(R.layout.item_game_group_game_compare, data);
|
|
super(R.layout.item_game_group_game_compare, data);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static final boolean canDownload = false;
|
|
|
|
|
|
|
+ public static boolean canDownload = false;
|
|
|
@Override
|
|
@Override
|
|
|
protected void convert(BaseViewHolder helper, Applications item) {
|
|
protected void convert(BaseViewHolder helper, Applications item) {
|
|
|
- TextView item_gggc_download_tv = helper.itemView.findViewById(R.id.item_gggc_download_tv);
|
|
|
|
|
|
|
+ TextView item_gggc_download_tv = helper.getView(R.id.item_gggc_download_tv);
|
|
|
View item_gggc_v_line = helper.itemView.findViewById(R.id.item_gggc_v_line);
|
|
View item_gggc_v_line = helper.itemView.findViewById(R.id.item_gggc_v_line);
|
|
|
TextView item_gggc_vip_tv = helper.itemView.findViewById(R.id.item_gggc_vip_tv);
|
|
TextView item_gggc_vip_tv = helper.itemView.findViewById(R.id.item_gggc_vip_tv);
|
|
|
TextView item_gggc_name_tv = helper.itemView.findViewById(R.id.item_gggc_name_tv);
|
|
TextView item_gggc_name_tv = helper.itemView.findViewById(R.id.item_gggc_name_tv);
|
|
@@ -42,8 +42,9 @@ public class AdpGameGroupGameCompare extends BaseQuickAdapter<Applications, Base
|
|
|
item.getFindAppHelper().updateDownloadTaskView(true, item, item_gggc_download_tv);
|
|
item.getFindAppHelper().updateDownloadTaskView(true, item, item_gggc_download_tv);
|
|
|
item_gggc_download_tv.setTag("PUBLIC_TAG_PREFIX_TEXTVIEW_LIST" + item.getDownload_link());
|
|
item_gggc_download_tv.setTag("PUBLIC_TAG_PREFIX_TEXTVIEW_LIST" + item.getDownload_link());
|
|
|
}
|
|
}
|
|
|
- ViewUtil.setVisibility(item_gggc_vip_tv, item.hasGameDiscountId());
|
|
|
|
|
- ViewUtil.setVisibility(item_gggc_v_line, item.hasGameDiscountId());
|
|
|
|
|
|
|
+ boolean showVipTv = item.hasGameDiscountId();
|
|
|
|
|
+ ViewUtil.setVisibility(item_gggc_vip_tv, showVipTv);
|
|
|
|
|
+ ViewUtil.setVisibility(item_gggc_v_line, showVipTv);
|
|
|
ViewUtil.setText(item_gggc_name_tv, item.getGameFrom());
|
|
ViewUtil.setText(item_gggc_name_tv, item.getGameFrom());
|
|
|
ViewUtil.setText(item_gggc_info_tv, item.getSimpleInfo());
|
|
ViewUtil.setText(item_gggc_info_tv, item.getSimpleInfo());
|
|
|
ViewUtil.setText(item_gggc_score_tv, NumberFormatUtils.retain1(item.getScore())+"分");
|
|
ViewUtil.setText(item_gggc_score_tv, NumberFormatUtils.retain1(item.getScore())+"分");
|