如何使自定义列表视图可点击每个项目存取权限的位置 [英] how to make custom listview with clickable to each items to acces its position

查看:136
本文介绍了如何使自定义列表视图可点击每个项目存取权限的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使自定义列表视图可点击每个项目(我的意思是,我正在其中包含一个图像按钮,二TextView的一个ListView和我要访问的位置,当用户点击的项目则没有显示点击。)

how to make custom listview with clickable to each items(I mean , I am making a listview which holds one image button, two textview and I want to access position when user click items then it is not showing clickable. ).

推荐答案

code:

@Override
public void onListItemClick(ListView l, View v, int position, long id) {

       // here position variable holding the ListView position which clicked by user 
}

这篇关于如何使自定义列表视图可点击每个项目存取权限的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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