开发者

ListView.getChildAt() getting child which are not on the screen

hi i have an expandable listview and its going to scroll when i increase expanded it.and then i try to retrieve all the child but its giving me children which are currently on screen. how can i get the children which are not on the screen. http://groups.google.com/group/android-developers/browse_thread/thread/7543f93b105c156e?fwc=1 i read this query but not understand how to override the getview method for getting those element.my getgroupview method is like this.

 public View getGroupView(int groupPosition, boolean isExpanded, View convertView,
                ViewGroup parent) {
            View v;
            v=convertView;
            if(v==null)
             {LayoutInflater vi = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
             v = vi.inflate(R.layout.group, null);
  开发者_如何学Go           }
        return v;}

what modification should i do for getting other child


how can i get the children which are not on the screen

You can't. They do not exist. ListView and ExpandableListView recycle rows.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜