Android Question Panel behind edittext blocks text

Jeff Garland

Member
Licensed User
Longtime User
.I'm trying to add a border around an edit text.

I found tons of folks saying just put it on a panel and use the panel's border to appear as the edit text's border.

With no panel, the edit text gets its text set. When I add a panel and set it as the parent for the edit text no text changes show on the edit text.

I tried setting the background of the panel to transparent and no change.

I tried making the panel slightly larger than the edit text and no change.

This is B4A 10.9

What am I missing?
 

Jeff Garland

Member
Licensed User
Longtime User
I created a new test app with a panel behind an edittext and it worked fine. Still can't get it to work in my original app.

This is an old app I started in 2.x as a licensed user and stopped working in 5.x. I got pretty sick for several years and picked it up to finish a month or so ago. The appearance of the edittext boxes changed from an actual box to a line and that looks pretty bad in my app.

I can't get the panel behind to work. Maybe it's just too old.
 
Upvote 0

Jeff Garland

Member
Licensed User
Longtime User
OK Spoke too soon.

When you say "put a panel behind" I just automatically made the panel the parent of the edittext. That doesn't work.

If you set both the edit text and the panel with the same parent and then push the panel to the background it works fine.
 
Upvote 0
Top