How to create a button bar with a simple dividing line or without separators in Android?

This seems like a really basic task, but after many searches and studies I still have not found a clear answer. I found a GridView, but not sure if you should do this.

I found several applications that have user interface elements similar to what I need, for example, the top buttons on the Android market.

here's an example of what I'm talking about

+4
source share
1 answer

This can be easily done using the horizontal LinearLayout , which contains a set of buttons or image buttons. The rest is just style.

To get started, see Hello Linear Layout .

+6
source

Source: https://habr.com/ru/post/1337047/


All Articles