D Deleted member 30048 Guest Oct 19, 2014 #1 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 12.7 KB · Views: 463
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.
Erel B4X founder Staff member Licensed User Longtime User Oct 19, 2014 #2 Can you upload your project (File - Export as zip)? Upvote 0
D Deleted member 30048 Guest Oct 19, 2014 #3 Erel said: Can you upload your project (File - Export as zip)? Click to expand... 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
Erel said: Can you upload your project (File - Export as zip)? Click to expand... 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
Informatix Expert Licensed User Longtime User Oct 19, 2014 #4 Confirmed on my side with the emulator. If you hide a button behind a panel, it appears above ! Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2014 #5 I see it too on Nexus 5. It seems like a bug in the new OS. I will track this issue. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2014 #6 Opened a bug for this: https://code.google.com/p/android-developer-preview/issues/detail?id=1619 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 22, 2014 #7 The solution is to explicitly set the theme to (or one of the other holo themes): Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Holo") Upvote 0
The solution is to explicitly set the theme to (or one of the other holo themes): Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
Informatix Expert Licensed User Longtime User Oct 22, 2014 #8 Erel said: The solution is to explicitly set the theme to (or one of the other holo themes): Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Holo") Click to expand... In my case, that solved the problem. I hope that works also with any custom theme. Upvote 0
Erel said: The solution is to explicitly set the theme to (or one of the other holo themes): Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Holo") Click to expand... In my case, that solved the problem. I hope that works also with any custom theme.
D Deleted member 30048 Guest Oct 24, 2014 #9 Informatix said: In my case, that solved the problem. I hope that works also with any custom theme. Click to expand... 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
Informatix said: In my case, that solved the problem. I hope that works also with any custom theme. Click to expand... 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.
freedom2000 Well-Known Member Licensed User Longtime User Nov 22, 2014 #10 Erel said: The solution is to explicitly set the theme to (or one of the other holo themes): Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Holo") Click to expand... Thank you Erel, I do have the same problem. I will test your fix Upvote 0
Erel said: The solution is to explicitly set the theme to (or one of the other holo themes): Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Holo") Click to expand... Thank you Erel, I do have the same problem. I will test your fix