D doogal Member Licensed User Longtime User Jun 23, 2013 #1 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:
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:
Erel B4X founder Staff member Licensed User Longtime User Jun 23, 2013 #2 You can use a Label instead of EditText. If you like the label to look line an EditText then you can create an EditText and assign its Background property to the label's background property. Upvote 0
You can use a Label instead of EditText. If you like the label to look line an EditText then you can create an EditText and assign its Background property to the label's background property.
D doogal Member Licensed User Longtime User Jun 23, 2013 #3 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
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
Erel B4X founder Staff member Licensed User Longtime User Jun 23, 2013 #4 I see it now. It has something to do with this device default style. You can create your own 9-patch images to replace the default ones. Upvote 0
I see it now. It has something to do with this device default style. You can create your own 9-patch images to replace the default ones.
klaus Expert Licensed User Longtime User Jun 23, 2013 #5 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 12.6 KB · Views: 609 2.jpg 13.5 KB · Views: 638 Upvote 0
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.
D doogal Member Licensed User Longtime User Jun 23, 2013 #6 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
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