Read a lot of dpi and dip, but am still confused:
In designer, I set lbltitle.height to 30
I can in Activity_Create set the lbltitle.height and log all that:
which gives me the values:
98
90
30
30
1. Why is the height-log first 98 and then 90? should it not be the same?
2. How can I set a dip-value with a variable.
In designer, I set lbltitle.height to 30
I can in Activity_Create set the lbltitle.height and log all that:
B4X:
Log(LblTitle.Height)
LblTitle.Height=30dip
Log(LblTitle.Height)
LblTitle.Height=30
Log(LblTitle.Height)
Dim ii As Int=30
LblTitle.Height=ii
Log(LblTitle.Height)
'LblTitle.Height=ii dip 'of course does not work.
98
90
30
30
1. Why is the height-log first 98 and then 90? should it not be the same?
2. How can I set a dip-value with a variable.