Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

What causes this layout to break?

$
0
0

I've deployed an app on both my Nexus 4 and my Nexus 5. On the N4, the splashscreen loads properly, however, on the N5, I get this...

Here's the splash screen code.

layout\SplashScreen.axml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:minWidth="25px"
    android:minHeight="25px">
    <TextView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:text="Loading...."
        android:textColor="#ffffff"
        android:gravity="bottom"
        android:textSize="30sp"
        android:id="@+id/SplashScreen_LoadingText" />
</LinearLayout>

values\SplashStyle.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="Theme.Splash" parent="android:Theme">
        <item name="android:windowBackground">@drawable/full_screen_splashscreen</item>
        <item name="android:windowNoTitle">true</item>
    </style>
</resources>

SplashScreen.cs

[Activity(
    Label = "Cosmic Game"
    , MainLauncher = true
    , Icon = "@drawable/ic_launcher"
    , Theme = "@style/Theme.Splash"
    , NoHistory = true
    , ScreenOrientation = ScreenOrientation.Portrait )]
public class SplashScreen : MvxSplashScreenActivity
{
    public SplashScreen () : base( Resource.Layout.SplashScreen )
    {
    }
}

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>