|
|
@@ -76,15 +76,15 @@ public class WelfareAdapter extends AdbCommonRecycler<TaskReleaseEty>{
|
|
|
}
|
|
|
GlideImageLoader.setGameImage(item_download_welfare_iv, itemTask.getIcon());
|
|
|
ViewUtil.setText(item_download_welfare_name_tv, item.getName());
|
|
|
- item_download_welfare_money.setText(Html.fromHtml(String.format(Locale.CHINA, "<font size='1'>¥</font>%s", item.getBonusText())));
|
|
|
+ ViewUtil.setH5Text(item_download_welfare_money, item.getH5BonusText());
|
|
|
ViewUtil.setText(item_download_welfare_num_tv, item.getGiftRatioText());
|
|
|
- ViewUtil.setText(item_download_welfare_num_tv1, item.getLastNumText());
|
|
|
ViewUtil.setText(item_download_welfare_date_tv, item.getDateText());
|
|
|
item_download_welfare_iv2.setVisibility(item.isTaskFinished()? View.VISIBLE : View.INVISIBLE);
|
|
|
|
|
|
item_download_welfare_btn_bottom.setTag(PUBLIC_TAG_PREFIX_TEXTVIEW_LIST + itemTask.getDownload_link());
|
|
|
switch (item.getUser_task_status()){//1,已接受任务 2,正在进行中,3完成任务,4放弃任务,5任务失败,6审核失败,7提交审核,8任务已下线,9至少完成了一个任务了
|
|
|
case 0:
|
|
|
+ ViewUtil.setText(item_download_welfare_num_tv1, item.getLastNumText());
|
|
|
item_download_welfare_money.setVisibility(View.VISIBLE);
|
|
|
item_download_welfare_btn_top.setVisibility(View.INVISIBLE);
|
|
|
item_download_welfare_btn_bottom.setEnabled(true);
|
|
|
@@ -98,6 +98,7 @@ public class WelfareAdapter extends AdbCommonRecycler<TaskReleaseEty>{
|
|
|
break;
|
|
|
case 1:
|
|
|
case 2:
|
|
|
+ ViewUtil.setText(item_download_welfare_num_tv1, item.getLastNumText());
|
|
|
item_download_welfare_money.setVisibility(View.VISIBLE);
|
|
|
item_download_welfare_btn_top.setVisibility(View.INVISIBLE);
|
|
|
item_download_welfare_btn_bottom.setEnabled(true);
|
|
|
@@ -123,6 +124,7 @@ public class WelfareAdapter extends AdbCommonRecycler<TaskReleaseEty>{
|
|
|
}
|
|
|
break;
|
|
|
case 3:
|
|
|
+ ViewUtil.setH5Text(item_download_welfare_num_tv1, item.getH5BonusText());
|
|
|
item_download_welfare_money.setVisibility(View.INVISIBLE);
|
|
|
item_download_welfare_btn_top.setVisibility(View.VISIBLE);
|
|
|
item.getDownloadHelper().updateDownloadTaskView((Activity) context, itemTask, item_download_welfare_btn_bottom);
|
|
|
@@ -141,6 +143,7 @@ public class WelfareAdapter extends AdbCommonRecycler<TaskReleaseEty>{
|
|
|
});
|
|
|
break;
|
|
|
default:
|
|
|
+ ViewUtil.setText(item_download_welfare_num_tv1, item.getLastNumText());
|
|
|
item_download_welfare_money.setVisibility(View.VISIBLE);
|
|
|
item_download_welfare_btn_top.setVisibility(View.INVISIBLE);
|
|
|
item_download_welfare_btn_bottom.setText("已经下线");
|