android动态设置图片

<ImageView
android:id="@+id/adapter_store_employee_list_imgv_sex"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:layout_marginLeft="5dp"
android:src="@mipmap/adapter_store_employee_male"/>

if(PersonSex.FAMALE.getValue() == user.getSex())
holder.imgvSex.setImageResource(R.mipmap.adapter_store_employee_female);
else
holder.imgvSex.setImageResource(R.mipmap.adapter_store_employee_male);

android动态设置图片

上一篇:devicemapper: Error running deviceCreate (ActivateDevice) dm_task_run failed


下一篇:Django学习(1)——python manage.py startapp app-name新建app报错问题