Horizontal Line in Textbox

doogal

Member
Licensed User
Longtime User
Hello B4A developers,

I am having an issue with a horizontal line in textboxes. When developing I use a Galaxy S4G and a Galaxy S3. The Galaxy S4G is running Gingerbread and gives the best results while the Galaxy S3 is running JellyBean gives the most problems.
I have a few textboxes and 1 of those is set Enabled = False. That box is greyed out on the GS4G and not so much on the S3. On the S3 there is a horizontal line in all of the boxes which is very annoying.
I have included a screenshot of the S3 and I hope someone can shed some light on this issue.

Here is a screenshot of the Galaxy S III:
15qf1uf.png
 

doogal

Member
Licensed User
Longtime User
Thanks Erel. That would work for the name field, but it also appears faintly in the others. I would really like to know what is causing this. Any ideas?

Sent from my SGH-T959V using Tapatalk 2
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
It is related to Enabled = False state when the height of the EditText is smaller than 48dip.
If you set edtName.Height = 48 or heigher you'll no more see the line.

Best regards.
 

Attachments

  • 1.jpg
    1.jpg
    12.6 KB · Views: 378
  • 2.jpg
    2.jpg
    13.5 KB · Views: 377
Upvote 0

doogal

Member
Licensed User
Longtime User
Klaus,
I was almost ready to tackle the 9-patch image idea from Erel and then you saved me. I still don't understand why making it bigger makes the lines go away. But as long as it works, I'm happy. :sign0060: Thanks so much for your time.

Doogal
 
Upvote 0
Top