0
,如果我有一个ImageView的和我想要显示它,如果总和= 10否则它必须被隐藏 我怎么能做到这一点在Java中显示ImageView的
<ImageView android:id="@+id/a"
android:src="@drawable/cancel"
android:layout_width="25dp"
android:layout_height="50dp"
android:layout_marginTop="20dp"
android:layout_marginLeft="20dp"
android:contentDescription="@string/delete"
></ImageView>
thansk
PLZ告诉我们您使用计算和 –
holder.alert =(ImageView的)convertView \t \t \t \t .findViewById(R.id.alert)代码;所以我的适配器中的每个学生都有一个图标,它只显示每个学生的总和10,但我可以显示的代码不是我想要的,但是在onclick中,所以我应该放置代码 –