标签:... resource roi cti val settag item sources name
示例代码:
view.setTag(R.string.action_settings,hodler.content);
接收两个值,一个是key值,必须是唯一值,而且要写在values/string.xml 里面,例如
<resources>
<item type ="id" name = "ffffff"></item>
.......
</resources>
最后调用如下:
view.setTag(R.id.ffffff,你要保存的值);
有多个要保存的值时,照写就行!
标签:... resource roi cti val settag item sources name
原文地址:http://www.cnblogs.com/xiaoxiaing/p/6367179.html