First of all, this is my code for style.xml:
<style name="MainTheme" parent="MainTheme.Base">
<item name="colorAccent">#FF4627</item>
</style>
<style name="MyTheme" parent="android:style/Theme.Material.Light.DarkActionBar">
<item name="android:colorPressedHighlight">@color/ListViewSelected</item>
<item name="android:colorLongPressedHighlight">@color/ListViewHighlighted</item>
<item name="android:colorFocusedHighlight">@color/ListViewSelected</item>
<item name="android:colorActivatedHighlight">@color/ListViewSelected</item>
<item name="android:activatedBackgroundIndicator">@color/ListViewSelected</item>
<item name="android:colorEdgeEffect">#FF4627</item>
</style>
<style name="splashscreen" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowBackground">@drawable/MDPI</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>
<color name="ListViewSelected">#E39696</color>
<color name="ListViewHighlighted">#E39696</color>
</resources>
This is what I changed in MainActivity.cs:
[Activity(Label = "Arboapp", Icon = "@drawable/ic_launcher", Theme = "@style/MainTheme", ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize )]
This is my SplashActivity.cs:
[Activity(Label = "Arboapp", MainLauncher =true, Theme ="@style/splashscreen", NoHistory =true, Icon = "@drawable/icon")]
public class SplashActivity : AppCompatActivity
{
protected override async void OnResume()
{
base.OnResume();
StartActivity(typeof(MainActivity));
}
}
I then populated every mipmap folder (drawable included) with files of the correct resolution.
Even this way, the splas screen image I get is distorted.
Should be like this: