Android Question EditText not quite Transparent [Solved, sort of....]

Roger Daley

Well-Known Member
Licensed User
Longtime User
Hi All

I have two EditTexts, one created in the designer and one in code. Both ET's are on the same background, both are set to Transparent in the code. [ET.Color = Colors.Transparent].
The ET set in the designer blends with the background the ET set in code appears to be semi-transparent and stands out.
Has anybody had this problem and possibly a solution?

Regards Roger
 

Attachments

  • EditText.jpg
    EditText.jpg
    19.4 KB · Views: 171

KZero

Active Member
Licensed User
Longtime User
put a tiny transparent png image in assets folder (attached)
and try this code
B4X:
Dim bd As BitmapDrawable
Dim B As Bitmap
B.Initialize (File.DirAssets,"none.png")
bd.Initialize(B)
Edit1.Background =bd
 

Attachments

  • none.zip
    2.9 KB · Views: 134
Upvote 0

Roger Daley

Well-Known Member
Licensed User
Longtime User
KZero,
Unfortunately didn't work.

Thanks Roger

...... but using the background .png instead of none.png did work.
Didn't answer the mystery of Transparent EditText but solved my immediate problem.

Many thanks
Roger
 
Last edited:
Upvote 0
Top