I am using labels with CENTER_VERTICAL. This works on my phone but on my tablet the text is at the bottom of the label.
I have tried adding this to Activity_Create
Label2.Gravity = Bit.Or(Gravity.BOTTOM, Gravity.CENTER_HORIZONTAL)
but it makes no difference.
If I set the label to BOTTOM, the text goes to the top on my tablet, and if I set the text to TOP is sits at the bottom. (I'm not holding my tablet upside down!)
On my phone whatever vertical alignment I set the text seems to be in the middle of the label.
Why is that? Different versions of Android? What should I be doing to get consistent text positioning on different devices?
I have tried adding this to Activity_Create
Label2.Gravity = Bit.Or(Gravity.BOTTOM, Gravity.CENTER_HORIZONTAL)
but it makes no difference.
If I set the label to BOTTOM, the text goes to the top on my tablet, and if I set the text to TOP is sits at the bottom. (I'm not holding my tablet upside down!)
On my phone whatever vertical alignment I set the text seems to be in the middle of the label.
Why is that? Different versions of Android? What should I be doing to get consistent text positioning on different devices?
Last edited: