cardslib
cardslib copied to clipboard
Using cardslib CardView with a recycler
In general, how do I use cardslib with a RecyclerView? I have a working program with the standard android CardView and I want to instead use the cardslib cards. I have a ViewAdapter, and I am guessing that I will need to change a few methods in there, and of course my layout file for the cards. Would that be it? Which methods would I change, and in general, how should I change it?
I think I will need to change my
- inner class CardDataObjectHolder which extends RecyclerView.Viewholder
- my onCreateViewHolder which returns the CardDataObjectHolder object and 3) my onBindViewHolder
I'd love to see some generic code that would go in those, plus any other methods I may have overlooked.
Thanks!
Hi. Sorry for the delay in the answer.
You can find more info in your stackoverflow question.
Il giorno lun 21 dic 2015 alle ore 03:25 MrGibbage [email protected] ha scritto:
In general, how do I use cardslib with a RecyclerView? I have a working program with the standard android CardView and I want to instead use the cardslib cards I have a ViewAdapter, and I am guessing that I will need to change a few methods in there, and of course my layout file for the cards Would that be it? Which methods would I change, and in general, how should I change it?
I think I will need to change my
- inner class CardDataObjectHolder which extends RecyclerViewViewholder
- my onCreateViewHolder which returns the CardDataObjectHolder object and 3) my onBindViewHolder
I'd love to see some generic code that would go in those, plus any other methods I may have overlooked
Thanks!
— Reply to this email directly or view it on GitHub https://github.com/gabrielemariotti/cardslib/issues/523.
Here you can find more info: http://stackoverflow.com/questions/34395148/in-general-how-do-i-use-a-custom-card-with-a-recyclerview/34411246#34411246