I use a modded version of Margret's CToast class, it works very well.
The activities that call up the messages are all set to Autoscale(1.0), I have no problems with the activities scaling on different devices, but sometimes strings displayed in the toast box don't fit on some devices.
I have tried to implement my own kind of scaling, I can see when I look at my code:
but that apparently doesn't always work. Does anyone have a better suggestion as to how I can set the text size in relation to soething or the other which will make the relative size of text and box etc be more consistent between devices? Thanks.
The activities that call up the messages are all set to Autoscale(1.0), I have no problems with the activities scaling on different devices, but sometimes strings displayed in the toast box don't fit on some devices.
I have tried to implement my own kind of scaling, I can see when I look at my code:
B4X:
Dim h As Int = FullPanel.Height / 1dip
TitleTextSize = h/12
QuestionTextSize = h/14
but that apparently doesn't always work. Does anyone have a better suggestion as to how I can set the text size in relation to soething or the other which will make the relative size of text and box etc be more consistent between devices? Thanks.