Closed Scrounger closed 7 years ago
Sure. I won't create a new release for it just yet, but you can use the individual commit for now.
Ah. This isn't possible with the RecyclerView unless you create a custom MaterialAboutActionItem. I am instead working on creating a more modular system. Hang tight.
Spent quite a while on this. Creating a custom MaterialAboutItem
(Extending MaterialAboutItem) & a custom ViewTypeManager
(extending ViewTypeManager). Is the quickest way of doing it right now. Might look into easier support in the future.
Can't guarantee stability in this build as I haven't properly tested if it even works. Cheers.
Use:
compile 'com.github.daniel-stoneuk:material-about-library:7f7bb3f922'
@daniel-stoneuk: I played a bit around but didn't get it to work. Can you post an example please?
Sorry about that, I'll spend some time now creating a demo for it. Thanks.
Took quite a long time but it's fun! I've added custom items to the demo. You can try and figure out how it works if you'd like as I don't have the time to document it.
Just quickly though, you need to:
Use: compile 'com.github.daniel-stoneuk:material-about-library:9280cbda33'
@daniel-stoneuk: Great, now i understand the concept, thanks a lot! Works like a charm, now its possible to customize also ohter Items like ActionTitlteItem
@daniel-stoneuk: Can you please implement the option to set a custom layout file for a single MaterialAboutActionItem
something like that: .layout(R.layout.myCustomMaterialAboutActionItem)