示例代码:view.setTag(R.string.action_settings,hodler.content);接收两个值,一个是key值,必须是唯一值,而且要写在values/ids.xml里面,例如<resources><item type ="id" name = "ffffff"></item>.......</resources>最后调用如下:view.setTag(R.id.ffffff,你要保存的值);有多个要保存的值时,照写就行!