1. Are you ready for the Galaxy S20? Here is everything we know so far!

Layout question - Evenly spaced icons

Discussion in 'Android Development' started by workbench, Mar 12, 2022.

  1. workbench

    workbench Lurker
    Thread Starter

    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
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Layout question Evenly
  1. Chris Hoffman
    Replies:
    4
    Views:
    356
  2. Wesley Stark
    Replies:
    3
    Views:
    635
  3. 4EverNoob
    Replies:
    1
    Views:
    549
  4. thequeenscheese
    Replies:
    3
    Views:
    991
  5. App Update
    Replies:
    0
    Views:
    476
  6. KerenSophia
    Replies:
    1
    Views:
    904
  7. Armczbt
    Replies:
    0
    Views:
    1,398
  8. janhrabe
    Replies:
    0
    Views:
    2,028
  9. bjourine stekarfield
    Replies:
    0
    Views:
    1,980
  10. sariDon2
    Replies:
    0
    Views:
    2,190

Share This Page

Loading...