0

I have a grid view and i want 10 buttons in a row. What should be the size of the buttons to fit exactly 10 buttons in width. If i take in mm or in it would work for only one type of screen. Any tips on how to use dp or dip is appreciable .

Prithvi Raj
  • 1,407
  • 11
  • 27

1 Answers1

0

With each screen having different sizes you would need to base it on the size of the screen loading the app. I think this link may help you there.

In addition, to better understand dp or Density-independent pixels, you may want to look here for the equation of a dp and using them in a layout of an application.

Hope this helps.

Gazza732
  • 179
  • 3
  • 15