P PierPaduan Active Member Licensed User Longtime User Oct 10, 2016 #1 Hi everyone, I'm using spinners and I load the background image with the following code: Code: Copy 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: Code: Copy 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.
Hi everyone, I'm using spinners and I load the background image with the following code: Code: Copy 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: Code: Copy 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.
Erel B4X founder Staff member Licensed User Longtime User Oct 10, 2016 #2 I've tested it on Android 7 and the background image does appear. Make sure to use the default theme (material theme) and that targetSdkVersion >=14. Upvote 0
I've tested it on Android 7 and the background image does appear. Make sure to use the default theme (material theme) and that targetSdkVersion >=14.
P PierPaduan Active Member Licensed User Longtime User Oct 19, 2016 #3 Problem fixed. I've added the following code in the manifest: Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Holo") Thank You very much Erel. Upvote 0
Problem fixed. I've added the following code in the manifest: Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Holo") Thank You very much Erel.