Android Curved Listview

前端 未结 1 1041
栀梦
栀梦 2021-01-30 05:39

i am implementing a listview in android which will look exactly like this and scroll \"enter

相关标签:
1条回答
  • 2021-01-30 06:29

    While trying to achieve a "curved" listview, I came across a solution by stealing from the v2 beta Android Wear support library.

    The key is the new WearableRecyclerView - see all the info you need at this link. Details of how to add the support library to your project: https://developer.android.com/wear/preview/start.html

    This recycler view allows you to supply a custom OffsettingHelper to achieve special transformations based on the current position of each list item.

    Incidentally, you should be using a RecyclerView anyway, as this recycles your views and improves performance; this'll all but eliminate the jerky animation you mentioned as new views don't have to be created every time they appear.

    0 讨论(0)
提交回复
热议问题