List view items changes position when scrolling android?

前端 未结 4 1857
花落未央
花落未央 2020-11-27 15:31

In my application i used custom list view adapter. In the list view item i added another layout. because in my service one order have any number of order items. For showing

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 15:56

    I had the same issue then below link resolved my problem ;

    https://stackoverflow.com/a/36738935/3341089

    Basically, you should specify your item types then reconfigure your adapter via getItemViewType(int position) and getViewTypeCount() override methods.

    If you look into above link, you will get it.

提交回复
热议问题