B4A 2.22, setting panel to transparent also affects Buttons

margret

Well-Known Member
Licensed User
Longtime User
I am using the new 2.22 B4A and when I set a panel to transparent it also sets the Buttons in the panel to transparent. Is this an issue? I built this layout in the designer. The previous version did not do this. Any ideas how to keep the buttons showing while the panel is transparent? Code is running on ICS.
 

MLDev

Active Member
Licensed User
Longtime User
I'm not seeing that. I'm working on a project now that has transparent panels with Buttons, ToggleButtons, ImageViews, and Labels on them and it's working. I can see all of the views when the panel's visible = True.
 
Last edited:
Upvote 0

margret

Well-Known Member
Licensed User
Longtime User
The buttons I am using are set to Statelist Drawable and the alpha channel of the panel is set to 50. If you would, could you set just one of your buttons that has the panel as the parent, to Statelist Drawable and the panel alpha to 50 and see what you get? I also have the Android target set to 14 in the manifest and I am running on ICS. All this will make a difference. The manifest first line entry:

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

* * * UPDATE * * *

I changed the manifest to targret SDK 10 and the panel now works as it should but I can no longer hide the Soft Controls. This is an ICS Issue/Feature/???

<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="10"/>
 
Last edited:
Upvote 0

MLDev

Active Member
Licensed User
Longtime User
I just changed the panel alpha to 50 and it's working for me. I have the Android target set to 14 and the buttons are set to Statelist Drawable.
 
Upvote 0

margret

Well-Known Member
Licensed User
Longtime User
It may be the OS build on the ASUS. I just know it's fine and works if I set the target to 10 and it don't if it is set to 14. Maybe a bug in the ASUS OS (Or a Feature):sign0161:

Thanks for checking on this!

I am going to set the target in between 10 and 14 and see what it does.

* * * UPDATE * * *

Anything over 10 on the target and it fails to work. SDK 15 is as high as I have installed and it works the same as well (Which means it don't work right). So, as I said before and as NJDude said below, must be the ASUS/ICS or both. Guess this panel will not be transparent...
 
Last edited:
Upvote 0
Top