Merge pull request #350 from KeizerDev/splash-screen
Added Splash Screen to bypass blank screen on start up.
This commit is contained in:
commit
2080bb2da1
4 changed files with 18 additions and 2 deletions
|
@ -18,7 +18,8 @@
|
||||||
tools:ignore="AllowBackup">
|
tools:ignore="AllowBackup">
|
||||||
<activity
|
<activity
|
||||||
android:name=".VideoItemListActivity"
|
android:name=".VideoItemListActivity"
|
||||||
android:label="@string/app_name">
|
android:label="@string/app_name"
|
||||||
|
android:theme="@style/SplashScreenTheme">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ import android.view.View;
|
||||||
import android.view.inputmethod.InputMethodManager;
|
import android.view.inputmethod.InputMethodManager;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import org.schabi.newpipe.download.MainActivity;
|
|
||||||
import org.schabi.newpipe.extractor.ExtractionException;
|
import org.schabi.newpipe.extractor.ExtractionException;
|
||||||
import org.schabi.newpipe.extractor.SearchEngine;
|
import org.schabi.newpipe.extractor.SearchEngine;
|
||||||
import org.schabi.newpipe.extractor.ServiceList;
|
import org.schabi.newpipe.extractor.ServiceList;
|
||||||
|
@ -200,6 +199,7 @@ public class VideoItemListActivity extends AppCompatActivity
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
setTheme(R.style.AppTheme);
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_videoitem_list);
|
setContentView(R.layout.activity_videoitem_list);
|
||||||
StreamingService streamingService = null;
|
StreamingService streamingService = null;
|
||||||
|
|
12
app/src/main/res/drawable/splash_screen.xml
Normal file
12
app/src/main/res/drawable/splash_screen.xml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
|
<item
|
||||||
|
android:drawable="@color/light_background_color"/>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<bitmap
|
||||||
|
android:gravity="center"
|
||||||
|
android:src="@mipmap/ic_launcher"/>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
|
@ -48,6 +48,9 @@
|
||||||
<item name="background">@color/video_overlay_color</item>
|
<item name="background">@color/video_overlay_color</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="SplashScreenTheme" parent="@style/AppTheme">
|
||||||
|
<item name="android:windowBackground">@drawable/splash_screen</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<!-- You can also inherit from NNF_BaseTheme.Light -->
|
<!-- You can also inherit from NNF_BaseTheme.Light -->
|
||||||
<style name="FilePickerTheme" parent="NNF_BaseTheme.Light">
|
<style name="FilePickerTheme" parent="NNF_BaseTheme.Light">
|
||||||
|
|
Loading…
Reference in a new issue