Android Question Buttons are always in front on Android 5.0

D

Deleted member 30048

Guest
Hello, I have installed Android 5.0 Lollipop on a Nexus 5. When I compile a proyect, buttons are always in front of all other elements (See the attached image).

Anyone else had the same issue?

Thanks.
 

Attachments

  • Sin título.png
    Sin título.png
    12.7 KB · Views: 197
D

Deleted member 30048

Guest
Can you upload your project (File - Export as zip)?

Hello, right now I'm not at home for a few days and I can't upload the proyect but isn't necessary.

The only line of code you need is "Activity.Loadlayout("name")" on activitycreate and insert a button and other elements in the designer.

I have tested it also in the emulator and the issue remains.

The issue is solved if you put in the manifest editor targetsdkversion like 13, if you put 14 or higer the issue remains.

Best regards
 
Upvote 0
D

Deleted member 30048

Guest
In my case, that solved the problem. I hope that works also with any custom theme.

For any custom theme not, if you use Material Theme the problem remains. If in the future is not resolved, you can put the buttons inside a panel. This works.
 
Upvote 0

freedom2000

Well-Known Member
Licensed User
Longtime User
The solution is to explicitly set the theme to (or one of the other holo themes):
B4X:
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
Thank you Erel,

I do have the same problem. I will test your fix
 
Upvote 0
Top