<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Splash Screen Archives - Codeplaners</title>
	<atom:link href="https://codeplaners.com/tag/splash-screen/feed/" rel="self" type="application/rss+xml" />
	<link>https://codeplaners.com/tag/splash-screen/</link>
	<description>Code Solution</description>
	<lastBuildDate>Fri, 21 May 2021 23:53:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>

<image>
	<url>https://codeplaners.com/wp-content/uploads/2020/09/cropped-favicon-social-32x32.png</url>
	<title>Splash Screen Archives - Codeplaners</title>
	<link>https://codeplaners.com/tag/splash-screen/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How To Add Splash Screen In Android</title>
		<link>https://codeplaners.com/how-to-add-splash-screen-in-android/</link>
					<comments>https://codeplaners.com/how-to-add-splash-screen-in-android/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 21 May 2021 23:51:27 +0000</pubDate>
				<category><![CDATA[Android Studio]]></category>
		<category><![CDATA[Android Studio 4]]></category>
		<category><![CDATA[Source Code]]></category>
		<category><![CDATA[Splash Screen]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=814</guid>

					<description><![CDATA[<p>Hi, Today, i we will show you How To Add Splash Screen In Android . This article will give you simple example of How To Add Splash Screen In Android. you will learn How To Add Splash Screen In Android. So let&#8217;s follow few step to create example of How To Add Splash Screen In &#8230; <a href="https://codeplaners.com/how-to-add-splash-screen-in-android/" class="more-link">Continue reading<span class="screen-reader-text"> "How To Add Splash Screen In Android"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/how-to-add-splash-screen-in-android/">How To Add Splash Screen In Android</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi,</p>
<p>Today, i we will show you How To Add Splash Screen In Android . This article will give you simple example of How To Add Splash Screen In Android. you will learn How To Add Splash Screen In Android. So let&#8217;s follow few step to create example of How To Add Splash Screen In Android.</p>
<h3>Step 1:- Open manifest and add</h3>
<p><strong>AndroidManifest.xml</strong></p>
<pre class="brush: java; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    package=&quot;com.codeplaners.myapplication&quot;&gt;
 
    &lt;application
        android:allowBackup=&quot;true&quot;
        android:icon=&quot;@mipmap/ic_launcher&quot;
        android:label=&quot;@string/app_name&quot;
        android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
        android:supportsRtl=&quot;true&quot;
        android:theme=&quot;@style/AppTheme&quot;&gt;
        &lt;activity
            android:name=&quot;.SplashActivity&quot;
            android:theme=&quot;@style/Theme.AppCompat.Light.NoActionBar&quot;&gt;
            &lt;intent-filter&gt;
                &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
 
                &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
        &lt;activity android:name=&quot;.MainActivity&quot;&gt;&lt;/activity&gt;
    &lt;/application&gt;
 
&lt;/manifest&gt;
</pre>
<h3>Step 2:- Create New SplashActivity.java and activity_splash.xml </h3>
<p><strong>activity_splash.xml</strong></p>
<pre class="brush: java; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
    xmlns:tools=&quot;http://schemas.android.com/tools&quot;
    android:layout_width=&quot;match_parent&quot;
    android:layout_height=&quot;match_parent&quot;
    android:orientation=&quot;vertical&quot;
    android:gravity=&quot;center&quot;
    android:background=&quot;@color/colorPrimary&quot;
    tools:context=&quot;.SplashActivity&quot;&gt;
 
    &lt;ImageView
        android:src=&quot;@drawable/logo&quot;
        android:layout_width=&quot;250dp&quot;
        android:layout_height=&quot;250dp&quot; /&gt;
    &lt;TextView
        android:layout_width=&quot;wrap_content&quot;
        android:layout_height=&quot;wrap_content&quot;
        android:text=&quot;Loading...&quot;
        android:textColor=&quot;#fff&quot;
        android:textSize=&quot;30sp&quot;
        android:textStyle=&quot;bold&quot; /&gt;
 
&lt;/LinearLayout&gt;
</pre>
<p><strong>SplashActivity.java</strong></p>
<pre class="brush: java; title: ; notranslate">
package com.codeplaners.myapplication;
 
import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
 
public class SplashActivity extends AppCompatActivity {
 
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //Hiding Title bar of this activity screen */
        getWindow().requestFeature(Window.FEATURE_NO_TITLE);
        //Making this activity, full screen */
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_splash);
 
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                startActivity(new Intent(SplashActivity.this, MainActivity.class));
                finish();
            }
        }, 4000);
    }
}
</pre>
<h3>Step 3:- Add Code activity_main And MainActivity File</h3>
<p><strong>activity_main.xml</strong></p>
<pre class="brush: java; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
    xmlns:tools=&quot;http://schemas.android.com/tools&quot;
    android:layout_width=&quot;match_parent&quot;
    android:layout_height=&quot;match_parent&quot;
    android:orientation=&quot;vertical&quot;
    android:gravity=&quot;center&quot;
    tools:context=&quot;.MainActivity&quot;&gt;
 
    &lt;TextView
        android:text=&quot;Welcome&quot;
        android:textSize=&quot;30sp&quot;
        android:layout_width=&quot;wrap_content&quot;
        android:layout_height=&quot;wrap_content&quot; /&gt;
 
&lt;/LinearLayout&gt;
</pre>
<p><strong>MainActivity.java</strong></p>
<pre class="brush: java; title: ; notranslate">
package com.codeplaners.myapplication;
 
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
 
public class MainActivity extends AppCompatActivity {
 
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}
</pre>
<p>The post <a rel="nofollow" href="https://codeplaners.com/how-to-add-splash-screen-in-android/">How To Add Splash Screen In Android</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/how-to-add-splash-screen-in-android/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
