Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Nov 2, 2018
1 parent 3a81a05 commit 2fd13fe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 32 deletions.
37 changes: 12 additions & 25 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,11 @@
android:name=".view.activity.SearchBookActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:theme="@style/CAppTransparentTheme"
android:windowSoftInputMode="stateHidden|adjustUnspecified" />
<activity
android:name=".view.activity.ChoiceBookActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:theme="@style/CAppTransparentTheme" />
android:launchMode="singleTask" />
<activity
android:name=".view.activity.BookDetailActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
Expand All @@ -100,58 +98,47 @@
<activity
android:name=".view.activity.ImportBookActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:theme="@style/CAppTransparentTheme" />
android:launchMode="singleTask" />
<activity
android:name=".view.activity.BookSourceActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:theme="@style/CAppTransparentTheme" />
android:launchMode="singleTask" />
<activity
android:name=".view.activity.ReplaceRuleActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:theme="@style/CAppTransparentTheme" />
android:launchMode="singleTask" />
<activity
android:name=".view.activity.SettingActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:theme="@style/CAppTransparentTheme" />
android:launchMode="singleTask" />
<activity
android:name=".view.activity.AboutActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:theme="@style/CAppTransparentTheme" />
android:launchMode="singleTask" />
<activity
android:name=".view.activity.DonateActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:theme="@style/CAppTransparentTheme" />
android:launchMode="singleTask" />
<activity
android:name=".view.activity.SourceEditActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:theme="@style/CAppTransparentTheme" />
android:launchMode="singleTask" />
<activity
android:name=".view.activity.ReadStyleActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:theme="@style/CAppTransparentTheme" />
android:launchMode="singleTask" />
<activity
android:name=".view.activity.DownloadActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:theme="@style/CAppTransparentTheme" />
android:launchMode="singleTask" />
<activity
android:name=".view.activity.BookInfoActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:theme="@style/CAppTransparentTheme" />
android:launchMode="singleTask" />
<activity
android:name=".view.activity.UpdateActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:theme="@style/CAppTransparentTheme" />
android:launchMode="singleTask" />

<service android:name=".service.DownloadService" />
<service android:name=".service.ReadAloudService" />
Expand Down
14 changes: 7 additions & 7 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@
<!-- Customize your theme here. -->
</style>

<style name="CAppTransparentTheme" parent="CAppTheme">
<!-- Customize your theme here. -->
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
</style>

<style name="Base.AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="actionOverflowMenuStyle">@style/PopupMenu</item>
<item name="android:itemTextAppearance">@style/MenuItemTextStyle</item>
<item name="android:popupMenuStyle">@style/PopupMenu</item>
</style>

<style name="NavigationViewStyle">
Expand All @@ -36,13 +43,6 @@
<item name="android:popupBackground">@color/background_menu</item>
</style>

<style name="CAppTransparentTheme" parent="CAppTheme">
<!-- Customize your theme here. -->
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:popupMenuStyle">@style/PopupMenu</item>
</style>

<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Light" />

<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light">
Expand Down

0 comments on commit 2fd13fe

Please sign in to comment.