先在res/values/strings.xml中添加
<resources>
<item type="id" name="tag_first"></item>
<item type="id" name="tag_second"></item>
</resources>
使用的时候写成
 
imageView.setTag(R.id.tag_first,"Hello");
imageView.setTag(R.id.tag_second,"Success");
 
就可以了
創作者介紹
創作者 jwjwo星象玩玩看 的頭像
u2b

jwjwo星象玩玩看

u2b 發表在 痞客邦 留言(0) 人氣( 12 )