Values disappearing from a Listview on Scroll - Android

前端 未结 3 2017
难免孤独
难免孤独 2020-12-20 04:18

I have a custom adapter extended from the SimpleCursorAdapter. Using this I\'m binding a ListView which contains a checkbox and Two textboxes. On opening the activity, the l

3条回答
  •  失恋的感觉
    2020-12-20 04:46

    Android does not render all ListView entries at once, but only those visible on the screen. When "new" List-Rows come into view the

    public View getView(int position, View convertView, ViewGroup parent)
    

    method of your Adapter gets called and the view is recreated. To fill in previousely saved values you probalby have to overwrite the getView method.

提交回复
热议问题