Quite simply: How does one ensure the icon background transparency takes effect?
I have Icons and Splash Screens with text or images over a transparent background. Instead of displaying as expected, I get a white square for the icons when installed on the Android device (multiple/every device) and the splash screens tend to appear with a black background.
Here's what I want my icon to look like (works in browsers, common pic viewers, playstore etc):
Basically, I get this instead:
Sorry for the lame example. I made this by hand in paint. My MainActivity looks like this...
[Activity(LaunchMode = LaunchMode.SingleTop, MainLauncher = true, Label = "myapp", Icon = "@drawable/icon", Theme = "@style/splashscreen", ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{...
My styles.xml looks like this:
<style name="splashscreen" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowBackground">@drawable/splashscreen</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsTranslucent">false</item>
<item name="android:windowIsFloating">false</item>
<item name="android:backgroundDimEnabled">true</item>
</style>