ListView 能获得列表的ietm吗? 比如第一条为“abc”,能得到abc这个字符串吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以的,看你的adapter是如何绑定的 重写adapter是一个不错的方法 可以啊,你的adapter是怎么绑定数据的啥?? 在你的Adapter的getItem(int position)中返回的是什么,然后调getListAdapter().getItem(pos)就会返回什么.比如:1 class Content {2 Bitmap icon;3 String name;4 }5 ...6 ArrayList<Content> mList = new ArrayList<Content>();//ListView上显示的数据源7 class MyListAdapter extends BaseAdapter {8 ...9 public Object getItem (int pos) {10 return mList.get(pos);11 }12 ...13 Content c = (Content)getListAdapter.getItem(position);14 String name = c.name;//这个就是你想要的吧 getItem(int position) 这个返回的就是你里面的类型。 完全可以 自己看看SDK里面的Adapter嘛 智能电视开发者成都聚会 android如何使用syncML来同步通讯录 android camera焦距设置 android 获取 网络 下载地址 两个activity 跳转中间用进度条。android 有关cagegory的问题 流泪求达人进来看看……添加联系人的界面如何去得到用户在文本框里输入的文字? help !! android启动页实现 关于android 7.0版本的socket问题 打开电脑会有没有文件扩展名的提示 请各位达人帮帮忙(关于平台搭建)
比如:
1 class Content {
2 Bitmap icon;
3 String name;
4 }
5 ...
6 ArrayList<Content> mList = new ArrayList<Content>();//ListView上显示的数据源7 class MyListAdapter extends BaseAdapter {
8 ...
9 public Object getItem (int pos) {
10 return mList.get(pos);
11 }
12 ...
13 Content c = (Content)getListAdapter.getItem(position);
14 String name = c.name;//这个就是你想要的吧