Commit 3648484b authored by 王海's avatar 王海

新增选择行业,修改部分ui

parent 5a28733b
......@@ -29,7 +29,7 @@ public class SelectIndustryAdapter extends BaseAdapter<Industry, ItemSelectIndus
if (item.isSelect()) {
mViewBinding.tvItemSelect.setVisibility(View.VISIBLE);
mViewBinding.tvItem.setVisibility(View.GONE);
}else {
} else {
mViewBinding.tvItemSelect.setVisibility(View.GONE);
mViewBinding.tvItem.setVisibility(View.VISIBLE);
}
......@@ -38,6 +38,58 @@ public class SelectIndustryAdapter extends BaseAdapter<Industry, ItemSelectIndus
setDrawableLeft(mViewBinding, R.mipmap.industry_market);
}
break;
case 1: {
setDrawableLeft(mViewBinding, R.mipmap.industry_flower);
}
break;
case 2: {
setDrawableLeft(mViewBinding, R.mipmap.industry_clothes);
}
break;
case 3: {
setDrawableLeft(mViewBinding, R.mipmap.industry_pharmacy);
}
break;
case 4: {
setDrawableLeft(mViewBinding, R.mipmap.industry_food);
}
break;
case 5: {
setDrawableLeft(mViewBinding, R.mipmap.industry_fresh);
}
break;
case 6: {
setDrawableLeft(mViewBinding, R.mipmap.industry_store);
}
break;
case 7: {
setDrawableLeft(mViewBinding, R.mipmap.industry_spouse);
}
break;
case 8: {
setDrawableLeft(mViewBinding, R.mipmap.industry_smoke);
}
break;
case 9: {
setDrawableLeft(mViewBinding, R.mipmap.industry_baby);
}
break;
case 10: {
setDrawableLeft(mViewBinding, R.mipmap.industry_tea);
}
break;
case 11: {
setDrawableLeft(mViewBinding, R.mipmap.industry_book);
}
break;
case 12: {
setDrawableLeft(mViewBinding, R.mipmap.industry_beauty);
}
break;
case 13: {
setDrawableLeft(mViewBinding, R.mipmap.industry_other);
}
break;
}
......@@ -48,5 +100,6 @@ public class SelectIndustryAdapter extends BaseAdapter<Industry, ItemSelectIndus
Drawable drawable = App.instance.getResources().getDrawable(resources);
drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight());
mViewBinding.tvItem.setCompoundDrawables(drawable, null, null, null);
mViewBinding.tvItemSelect.setCompoundDrawables(drawable, null, null, null);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment