• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Layout question - Evenly spaced icons

workbench

Lurker
Mar 16, 2020
7
1
Hi everyone,

atm i try to create a simple layout to space icons evenly in a <view>. It seems so trivial but i can't get it to work without having to write some code. Here is an example image of what i want to achive:

https://pasteboard.co/ybdoGnyMtrSQ.png

In the image it looks very trivial. The two icons are both a <Button> element that should be centered inside the cells. In my example i need 5 icons in a row. I tried it with gridlayout but that doesn't get me anywhere, i was able to create something similar but was not able to center the button elements then!

I hope to find some help here.

best regards,
rocket
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones