Android : RecyclerView - use adapter in LinearLayouts (or use the RecyclerView with a corresponding LayoutManager)

on Friday, January 30, 2015


I have an RecyclerView.Adapter and I don't want to copy the logic to use the views in a LinearLayout.


So I want to know if something of the following two things is possible:



  • use the RecyclerView.Adapter somehow in a LinearLayout

  • create a LayoutManager that acts like a LinearLayout would do (I think this should be possible, it sounds like a good use case for that)


Is that somehow possible?


Why?



  • display the adapter in a scrollable list (in a RecyclerView with the corresponding LayoutManager)

  • display the adapter as part of list => here I need an "expanded" list which shows all items at once...


0 comments:

Post a Comment