Hello,
What is the standard way to make the size of the text inside the edit text match the height of the edit text so that it doesn't stick out?
B4X:
EditText1.TextSize=40
Now, in tablets, the text inside the edit text may be fit, but in the phones, it pops out from the top and bottom!
Thank you for writing a function that works on all Androids?
You got it wrong. My problem is that the width and height of the EditText is set by %
Therefore, in phones with a smaller screen, the size of the edit text will be smaller, while the TextSize is fixed. This causes the text not to be displayed completely inside the EditText.
I would not use % height on an edit field because of exactly the problem you describe. Your should fix the size the edit fields and put them all on a scrollable panel. Preferably a CustomListView.