Bug?

Bernie

Member
Licensed User
Longtime User
Hello:

I put an EditText with Height=20, but text don't fit correct. What is the minimal height possible?

Thank you
 

Bernie

Member
Licensed User
Longtime User
Hello:

No matter what TextSize is set. With HEIGHT=20 in a EditText, the control show incorrect.
 

klaus

Expert
Licensed User
Longtime User
What I meant with : It depends also on the TextSize property is :If you set an EditText.Height = 30 and EditText.TextSize = 10 it is shown OK.If you set an EditText.Height = 30 and EditText.TextSize = 20 it is shown NOT OK.I think you shouldn't set EditText.Height below 30dip.

Best regards.
 

Tom Law

Active Member
Licensed User
Longtime User
Hi Bernie,

Try using the reflector library to reduce or remove the editviews padding (the white space around printed characters)

Example using an edit view called txt1

txt1.Color = Colors.White 'Removes the view edges
Dim r As Reflector
r.Target = txt1 'Set padding to minimum
r.RunMethod4("setPadding", Array As Object(0, 1dip, 0, 0), _ Array As String("java.lang.int", "java.lang.int", "java.lang.int", "java.lang.int"))

This way you can use a larger font in a small edit view.

Tom
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…