Skip to content

Commit

Permalink
增加swipe_back
Browse files Browse the repository at this point in the history
  • Loading branch information
weikaiyun committed Nov 16, 2020
1 parent 7c6d8c7 commit 0cf5d17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".demo.ui.main.DemoMainActivity">
<activity
android:name=".demo.ui.main.DemoMainActivity"
android:theme="@style/AppTheme.NoActionBar.SwipeBack"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
9 changes: 9 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@
<item name="colorAccent">@color/colorAccent</item>
</style>

<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>

<style name="AppTheme.NoActionBar.SwipeBack">
<item name="android:windowIsTranslucent">true</item>
</style>

</resources>

0 comments on commit 0cf5d17

Please sign in to comment.