比如第一条为“abc”,能得到abc这个字符串吗?

解决方案 »

  1.   

    可以的,看你的adapter是如何绑定的
      

  2.   

    重写adapter是一个不错的方法
      

  3.   

    可以啊,你的adapter是怎么绑定数据的啥??
      

  4.   

    在你的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;//这个就是你想要的吧
      

  5.   

    getItem(int position) 这个返回的就是你里面的类型。
      

  6.   

    完全可以 自己看看SDK里面的Adapter嘛