Commit 9e0f185a9092cacc6a5a6ed61b363194f50d3cea

Authored by 朱显松
1 parent 5a781ae9

启动页面全屏展示

app/src/main/AndroidManifest.xml
... ... @@ -18,7 +18,11 @@
18 18 android:screenOrientation="portrait"
19 19 android:supportsRtl="true"
20 20 android:theme="@style/AppTheme">
21   - <activity android:name="cn.vlion.simple.SplashActivity">
  21 + <activity android:name="cn.vlion.simple.SplashActivity"
  22 + android:configChanges="keyboardHidden|screenSize|orientation"
  23 + android:launchMode="singleTop"
  24 + android:screenOrientation="portrait"
  25 + android:theme="@style/AppFullScreenTheme">
22 26 <intent-filter>
23 27 <action android:name="android.intent.action.MAIN" />
24 28  
... ...
app/src/main/res/values/styles.xml
... ... @@ -15,4 +15,10 @@
15 15 <item name="android:layout_marginTop">20dp</item>
16 16 </style>
17 17  
  18 + <style name="AppFullScreenTheme" parent="AppTheme">
  19 + <item name="android:windowFullscreen">true</item>
  20 + <item name="android:windowNoTitle">true</item>
  21 + <item name="windowActionBar">false</item>
  22 + <item name="windowNoTitle">true</item>
  23 + </style>
18 24 </resources>
... ...