Android Question (solved) strange dark line in the middle of a textbox

achtrade

Active Member
Licensed User
Longtime User
Hello,

All my textboxs show a strange dark line, why is that and how i can get rid of it ?, this only happen when I see the app in the phone.

Thanks.
 

Attachments

  • textbox.png
    11.6 KB · Views: 188

barx

Well-Known Member
Licensed User
Longtime User
I had something similar with spinners. If I remember right it was on a Android 4+ device with maxSDK set pretty low.
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
Think it was just a matter of setting higher maxSDK in manifest editor. 18 or 19 are the latest 2. May also need to update your sdk Android . jar reference.
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
Yes, good call Erel. Busy day at work today so my brain is like mushy peas. Thanks for picking that up...
 
Upvote 0

achtrade

Active Member
Licensed User
Longtime User
You probably mean targetSdkVersion. You should set it to 14. In most cases there is no good reason to set maxSdk.
Well it has 14 and still not working.

B4X:
ddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")

how can I fix this ?

thanks.
 
Upvote 0

achtrade

Active Member
Licensed User
Longtime User
I've installed the apk in my phone Galaxy S3 and the problem persist. This is really annoying.

What else can I do ?

Please help
 
Upvote 0

achtrade

Active Member
Licensed User
Longtime User
no code related to the textbox, this is the property screen.

Maybe if I change the textbox's background color ? how ?
 

Attachments

  • textbox.jpg
    87 KB · Views: 145
Upvote 0

keirS

Well-Known Member
Licensed User
Longtime User
For this issue change your theme to Theme(old) or Holo.Light. To do this click on the menu key on the phone in B4A designer. You also need to set the theme in the manifest editor.

B4X:
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
 
Last edited:
Upvote 0

achtrade

Active Member
Licensed User
Longtime User
thank you thank you thank you

This solved my 2 issues.

Thanks again

 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
Just spotted this again, The theme was going to be my second suggestion.

In fact, thinking about it, it may have been what spurred my version based theme tutorial as if you have it set to just Holo then I believe you will get errors in older version of android that don't support the Holo theme...

Glad you got it sorted
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…