How to get view for an item in listview in android?

前端 未结 5 2134
南方客
南方客 2020-12-16 17:26

Is it possible to get an item view based on its position in the adapter and not in the visible views in the ListView?

I am aware of functions like getChildAt() and g

5条回答
  •  独厮守ぢ
    2020-12-16 17:39

    A better option is to identify using the data returned by the CursorAdapter rather than visible views. For example if your data is in a Array , each data item has a unique index.

提交回复
热议问题