Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们可以为网格视图单元格项目设置多个标签吗?比如我们可以为单项设置“手机”、“电话”、“通讯”标签吗?我已经尝试获取项目数组,但它不起作用。有任何想法吗?
给定一个Viewnamed v,将一个ArrayList<String>nameda与其v标签关联起来,调用v.setTag(a)。
View
v
ArrayList<String>
a
v.setTag(a)
给定一个Viewnamed v,要检索一个ArrayList<String>fromv作为它的标签,调用(ArrayList<String>)v.getTag()。
(ArrayList<String>)v.getTag()