animated splashscreen with loading progressbar in android xamarin
<p>i am creating a splashscreen with progressbar in xamarin monoandroid in visual Studio 2015
I have seen so many post regarding splash screen only with logo but i need animated splashscreen with animated loading progress bar in that.</p>

<p>SplashScreen.cs</p>

<pre><code>namespace Splash_Screen
{
      [Activity(Label = "Splash Screen App", MainLauncher = true, NoHistory = true, Icon = "@drawable/icon")]
    public class SplashScreen : Activity
    {
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            //Display Splash Screen for 4 Sec  
            SetContentView(Resource.Layout.SplashLayout);
               TextView loadingText = FindViewById&lt;TextView&gt;(Resource.Id.textView1);
            ProgressBar mProgress = (ProgressBar)FindViewById(Resource.Id.progress_bar);
            Thread.Sleep(4000);
            //Start Activity1 Activity  
            StartActivity(typeof(MainActivity));
        }
    }
}
</code></pre>

<p>SplashLayout.axml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/splash_screen_bg"
    android:gravity="center"
    android:orientation="vertical"&gt;
    &lt;TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="loading"
        android:textAppearance="@android:style/TextAppearance.Medium.Inverse"
        android:textColor="@android:color/background_light" /&gt;
    &lt;ProgressBar
        android:id="@+id/progress_bar"
        style="?android:attr/progressBarStyleHorizontal"
        android:layout_width="200dp"
        android:layout_height="wrap_content"
        android:max="100" /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>splash_screen_bg.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle" &gt;

  &lt;gradient
      android:angle="90"
      android:centerColor="#FF223333"
      android:endColor="@android:color/black"
      android:startColor="@android:color/black" /&gt;

&lt;/shape&gt;
</code></pre>

<p>i am getting a blank black screen instead of splash screen.What should be done here</p>

<p>i need like this as in this image with no actionbar</p>

<p><a href="https://i.stack.imgur.com/uOWUL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uOWUL.png" alt="enter image description here"></a></p>