Default buttons looking transparent in Android 3.1

NJDude

Expert
Licensed User
Longtime User
I installed one of my apps on a Galaxy Tab running android 3.1 and the default buttons are transparent, I tried searching the forums but couldn't find an answer.

Is this a normal behavior on 3.1 or something can be done?

Thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Standard button on Samsung Galaxy Tab 10' (Android 3.1) vs. the same button on Android 2.2 emulator:

SS-2011-10-09_09.07.48.png
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
The attached screenshots show the problem I'm mentioning.

The First one is how it looks on a phone, the other 2 on a Galaxy Tab.
 

Attachments

  • Phone.JPG
    Phone.JPG
    13.2 KB · Views: 233
  • Tablet.JPG
    Tablet.JPG
    6.4 KB · Views: 255
  • Tablet1.JPG
    Tablet1.JPG
    4.1 KB · Views: 259
Upvote 0

NJDude

Expert
Licensed User
Longtime User
This is what I found out, if you set the background as a panel with a 255 Alpha, works fine, if you add a picture to the panel's background the button becomes transparent, also, changing the alpha of the panel affects the alpha of the button.

The attached file is a sample, it contains a button, a panel and a picture, if you change the backgound of the panel you will see what's going on.

Is this an Android issue, a B4A issue or something else?.

Thanks.
 

Attachments

  • ButtonIssue.zip
    22.5 KB · Views: 252
Last edited:
Upvote 0

nfordbscndrd

Well-Known Member
Licensed User
Longtime User
I tried it on a Toshiba Thrive running 3.1 because I have related issues with it. (In fact, I just logged on to post one.) I don't get the problem on the TT -- it looks fine.

Have you updated your system lately? You might want to see if you and Erel have the same Build Number and Kernel Version.
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
I had some users who reported a "visual" problem which looks identical to your problem. It turned out they were all using a customized ROM based upon MUI. It happened also with other apps which were NOT written in B4A.

I didn't look into to it further. :sign0013:
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
I had some users who reported a "visual" problem which looks identical to your problem. It turned out they were all using a customized ROM based upon MUI. It happened also with other apps which were NOT written in B4A.

I didn't look into to it further. :sign0013:

No custom ROM here, but maybe that's one reason, who knows, this is the Galaxy Tab info:

Model Number : GT-P7510
Android Version: 3.1
Kernel Version: 2.6.36.3 se.infra@SEP-63 #1

In my case ALL the apps written with B4A show that issue, I'm puzzled.
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
I don't see any problem:
SS-2011-10-10_09.09.48.png

I see a subtle difference, your button looks "plain" mine has a beveled effect, maybe a "theme" is the culprit? but, I can't see any settings or options for themes on this tab.


EDIT: It seems it might have something to do with "Styles", according to what I've read so far.
 

Attachments

  • Button.JPG
    Button.JPG
    2.6 KB · Views: 206
Last edited:
Upvote 0

moster67

Expert
Licensed User
Longtime User
Yep, I believe it could be due to the styles. Also the MUI-roms implement styles or other graphical eyecandy.


I see a subtle difference, your button looks "plain" mine has a beveled effect, maybe a "theme" is the culprit? but, I can't see any settings or options for themes on this tab.


EDIT: It seems it might have something to do with "Styles", according to what I've read so far.



Sent from my HTC HD2
 
Upvote 0
Top