2

I want to make an edit box of 1cm*1cm in size. It should be of 1cm*1cm size on all the resolutions and on all the screens. Is their any way in android so that i can define height or width in cms ? It will be of great help , if someone can provide me solution for it.

Thanks in advance !!

2 Answers2

1

You may use "in" or "mm" as dimensional units for your layouts, that correspond to the inches or millimetres.

lenik
  • 23,228
  • 4
  • 34
  • 43
1

Look at More Resource Types # Dimension

There is a unit called mm for Millimeters.

mm Millimeters - Based on the physical size of the screen.

So 10mm are equal to 1cm.

Source is this Answer on this Question

Community
  • 1
  • 1
Angelo.Hannes
  • 1,729
  • 1
  • 18
  • 46