What is the unit for measuring the margin of a floating action button??
Px/Dp if I’m not wrong
/Boban
There are already 2 options
1 px = 1 dp
/Boban
I wanna show the floating action button in the very left side of the screen but I am unable to do so…Is there any way to do it?
**Floating buttion is not even showing in this coding.
px = dp * (dpi / 160)
Yes they are Px i check that running on Px,
But I think there is no such tool in kodular to measure the dp or dpi for every individual device…right??
But you can check your mobile screen size in dpi on any specifications website , they shows dpi of every device screen,
Humm, don’t have some other devices other dpi?
Yes they do,
All this calculations happens in the background without user knowing about it, so 15dp will show 60px on density 4 screens or 640dpi
60px = 15dp x (640/160)
as I said 1px = 1dp
even the link you posted says the same thing
/Boban
Use minus 40 for mini and 56 for normal, add additional value to both if you want more margin from the edge ex.16 will be then 56 for mini and 72 for normal
/Boban
Check again, do right click and do it on screen width block, what do you get?
- Px size of your phone
- Dp size of your phone
/Boban
Were these values helpful or are you still thoughtful
/Boban
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.