Edit Text Box

bishmedia

Member
Licensed User
Longtime User
I'm confused about EditText in designer

When i add 'Edittext' to my application via designer and run it the background of the textbox is black but when i run other eg source its white?

I need a white input text box!!

Am i missing something???
 
You can use colordrawabe like this. It will give you a white background. You can modify the radius:
Code: Copy
Dim cd As ColorDrawable
cd.Initialize(Colors.White,10)
txtTest.TextColor=Colors.Red
txtTest.Text="Bishmedia"
txtTest.Background=cd
 
Upvote 0
Thanks I'll try that tomorrow, its really bugging me as other apps are white without any scripts!!!!
I'm sure its something stupid

Many Thanks
 
Upvote 0
You may want to check your manifest editor ( Project, Manifest Editor) for this line and compare it for both applications and use the old style for the new one you do not like:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="10"/>
 
Upvote 0
OMG thanks
i changed the following line
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>

to this
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4"/>

and it works perfectly now???

What does this line actually do??
 
Upvote 0
Back
Top