Android Question Adjust the size of the EditText text

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?
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
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.
 
Upvote 0
Top