Android的图片浏览设置标签 [英] android-Image View set Tag

查看:91
本文介绍了Android的图片浏览设置标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作在一个应用程序中的图像视图使用 imageView.setTag(ID+,+型)即imageView.setTag(字符串)。这是该类别的类ID和类型,以便我进行调用特定的URL按标识和类型上单击图像....

I am working on an app in that the Image View uses imageView.setTag("id"+","+"type") i.e imageView.setTag(String) .. This is the category id and type of that category so that I perform call to specific URL as per Id and Type on Click of that image....

此编号和类型splited与,并为取决于类型的进一步操作分开使用。

This id and type are splited with "," and are used separately for further operations depending on the type.

在code是对于这种情况F9 ......但是,当我使用懒列表(图像装载机)用于显示图像的要求,,,,它还使用设置标签创建我的问题,,,

The code is f9 for this scenario... But what when I use Lazy List (Image Loader) for displaying images as requirement,,,, It also uses set Tag that creates my problem,,,

我如何管理这两个条件.....

How do I manage both conditions.....

Is any other alternative than set Tag for either of the purposes....

感谢您,,,

与问候,

Arpit

推荐答案

有两种版本setTag之一,它接受对象作为参数和其他需要重点和对象作为参数这里是<一个href=\"http://developer.android.com/reference/android/view/View.html#setTag%28int,%20java.lang.Object%29\"相对=nofollow>链接。
希望这帮助!

There are two version of setTag one which takes object as an argument and other takes key and object as an argument here is link. Hope this help!!!

这篇关于Android的图片浏览设置标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆