Setting Fixed Width Size Of View With Pt/mm/in Android
I'm trying to set fix width to a view. “in”, “mm”, and “pt” are density independent and the same size on every device or i am wrong? My view width should be 141.3pt/49.
Solution 1:
You should always specify dimensions of your views in dp (density-independent pixels). Avoid using other units. When you want to specify a size of text use sp units. Difference between px, dp, dip and sp in Android
Post a Comment for "Setting Fixed Width Size Of View With Pt/mm/in Android"