Yet another getView called multiple times

后端 未结 5 1415
醉话见心
醉话见心 2020-11-28 11:57

Each item in my ListView containt an ImageView and a TextView, this will be filled with remote information.

I got an URL for t

5条回答
  •  渐次进展
    2020-11-28 12:33

    I tried using fill_parent as height in ListView but i was unable to achieve it perfect but how ever i tried it by preventing creating convertViews if it its already exist. it works fine in my appoach.

            @Override
            public View getView(final int position, View convertView, ViewGroup parent) {
             if (convertView != null)
                return convertView;
             else {
                //your code...
             }
        }
    

提交回复
热议问题