I have an Array List and for every Item, in the Array, I want to create a shape with a Title which should be the String in the Array. The Blocks should be scroled through horizontally.
I dont know how to add shapes with code, do I have to create a drawable and how do I make it scrollable?
CodePudding user response:
Here you have an answer: https://stackoverflow.com/a/45953855/2065587
Also, to create a shape you can follow this thread: Simplest way to create a Shape in Android Studio
Then, you can use your shape as a background in your RecyclerView
item.