Splash Screen added and gitignore update
This commit is contained in:
parent
44833dd8c0
commit
268c4da61c
12 changed files with 85 additions and 17 deletions
42
.gitignore
vendored
42
.gitignore
vendored
|
@ -1,7 +1,37 @@
|
||||||
.gradle
|
# Built application files
|
||||||
/local.properties
|
/*/build/
|
||||||
/.idea/workspace.xml
|
|
||||||
/.idea/libraries
|
# Crashlytics configuations
|
||||||
|
com_crashlytics_export_strings.xml
|
||||||
|
|
||||||
|
# Local configuration file (sdk path, etc)
|
||||||
|
local.properties
|
||||||
|
|
||||||
|
# Gradle generated files
|
||||||
|
.gradle/
|
||||||
|
|
||||||
|
# Signing files
|
||||||
|
.signing/
|
||||||
|
|
||||||
|
# User-specific configurations
|
||||||
|
.idea/libraries/
|
||||||
|
.idea/workspace.xml
|
||||||
|
.idea/tasks.xml
|
||||||
|
.idea/.name
|
||||||
|
.idea/compiler.xml
|
||||||
|
.idea/copyright/profiles_settings.xml
|
||||||
|
.idea/encodings.xml
|
||||||
|
.idea/misc.xml
|
||||||
|
.idea/modules.xml
|
||||||
|
.idea/scopes/scope_settings.xml
|
||||||
|
.idea/vcs.xml
|
||||||
|
*.iml
|
||||||
|
|
||||||
|
# OS-specific files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
/build
|
.DS_Store?
|
||||||
/captures
|
._*
|
||||||
|
.Spotlight-V100
|
||||||
|
.Trashes
|
||||||
|
ehthumbs.db
|
||||||
|
Thumbs.db
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
privacy-friendly-sudoku
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="Encoding">
|
|
||||||
<file url="PROJECT" charset="UTF-8" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
|
@ -8,14 +8,19 @@
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/AppTheme">
|
android:theme="@style/AppTheme">
|
||||||
|
<activity
|
||||||
|
android:name="org.secuso.privacyfriendlysudoku.ui.SplashActivity"
|
||||||
|
android:theme="@style/SplashTheme">
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|
||||||
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name="org.secuso.privacyfriendlysudoku.ui.MainActivity"
|
android:name="org.secuso.privacyfriendlysudoku.ui.MainActivity"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:theme="@style/AppTheme.NoActionBar">
|
android:theme="@style/AppTheme.NoActionBar">
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.intent.action.MAIN" />
|
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
|
||||||
</intent-filter>
|
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name="org.secuso.privacyfriendlysudoku.ui.SettingsActivity"
|
android:name="org.secuso.privacyfriendlysudoku.ui.SettingsActivity"
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
package org.secuso.privacyfriendlysudoku.ui;
|
||||||
|
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.support.v7.app.AppCompatActivity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by yonjuni on 22.10.16.
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class SplashActivity extends AppCompatActivity {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
Intent mainIntent = new Intent(SplashActivity.this, MainActivity.class);
|
||||||
|
SplashActivity.this.startActivity(mainIntent);
|
||||||
|
SplashActivity.this.finish();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
BIN
app/src/main/res/drawable-hdpi/splash_icon.png
Normal file
BIN
app/src/main/res/drawable-hdpi/splash_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2 KiB |
BIN
app/src/main/res/drawable-mdpi/splash_icon.png
Normal file
BIN
app/src/main/res/drawable-mdpi/splash_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/drawable-xhdpi/splash_icon.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/splash_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
BIN
app/src/main/res/drawable-xxhdpi/splash_icon.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/splash_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/splash_icon.png
Normal file
BIN
app/src/main/res/drawable-xxxhdpi/splash_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5 KiB |
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/colorAccent"/>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:src="@drawable/splash_icon"
|
||||||
|
android:gravity="center"
|
||||||
|
/>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
|
@ -56,6 +56,11 @@
|
||||||
<item name="android:layout_height">50dp</item>
|
<item name="android:layout_height">50dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="SplashTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen">
|
||||||
|
<item name="android:windowBackground">@drawable/splash_screen</item>
|
||||||
|
<item name="android:windowNoTitle">true</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
<!-- <style name="FontStyle">
|
<!-- <style name="FontStyle">
|
||||||
<item name="android:fontFamily"></item>
|
<item name="android:fontFamily"></item>
|
||||||
|
|
Loading…
Reference in a new issue