Android Question Spinner SetBackgroundImage doesn't work on android 6

PierPaduan

Active Member
Licensed User
Longtime User
Hi everyone,
I'm using spinners and I load the background image with the following code:
B4X:
SpnStd.SetBackgroundImage(LoadBitmap(File.DirAssets ,"light_gray_spinner.png"))
On Android 5.0.1 and previous versions it works perfectly, but on Android 6 (Galaxy S7) the background image doesn't appear, then spinner remain white.

I've tried the following to save memory, but nothing change:
B4X:
SpnStd.SetBackgroundImage(LoadBitmapSample(File.DirAssets ,"light_gray_spinner.png", 193, 40))
I'm using B4A 5.50.
Do you have any suggestion to fix this problem?

Thanks a Lot to everyone.
 

PierPaduan

Active Member
Licensed User
Longtime User
Problem fixed. :):):)

I've added the following code in the manifest:
B4X:
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")

Thank You very much Erel.
 
Upvote 0
Top