mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-23 22:19:13 +00:00
Basic launch screen
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
<activity
|
||||
android:name=".ui.activities.StartActivity"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/launchScreenTheme"
|
||||
android:screenOrientation="portrait">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:drawable="@color/background_material_dark"/>
|
||||
|
||||
<item>
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@drawable/sap_logo_64_sq"/>
|
||||
</item>
|
||||
|
||||
</layer-list>
|
||||
@@ -22,4 +22,10 @@
|
||||
<item name="windowActionBar">false</item>
|
||||
</style>
|
||||
|
||||
<style name="launchScreenTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<item name="android:adjustViewBounds">true</item>
|
||||
<item name="android:scaleType">centerCrop</item>
|
||||
<item name="android:windowBackground">@drawable/launch_screen</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
+1
@@ -28,6 +28,7 @@ public class StartActivity extends AbstractStartActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
setTheme(R.style.AppTheme);
|
||||
super.onCreate(savedInstanceState);
|
||||
prefs = new AppPreferences(this);
|
||||
if (getSupportActionBar() != null) {
|
||||
|
||||
Reference in New Issue
Block a user