[Solved] Add buttons dynamically [closed]


On the Android platform, a Button is a specific widget that is intended to perform a specific action when clicked. You describe a need for a dynamic number of buttons in a list format, for this you should use a RecyclerView, which would allow you to bind data to the number of clickable items.

If you want the appearance of each item in the RecyclerView list to look like a button, you can style the XML row item to look like one by inheriting the style from the built-in Button widget. This question asks how to style items with a background to provide Button-like visual states.

1

solved Add buttons dynamically [closed]