Skip to content

Commit

Permalink
增加swip back theme
Browse files Browse the repository at this point in the history
  • Loading branch information
zjlong committed Apr 19, 2016
1 parent ec5775e commit b6fb30a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
</activity>
<activity android:name=".ui.activity.LoginActivity" />
<activity android:name=".ui.activity.MainActivity" />
<activity android:name=".ui.activity.AndroidSwipActivity" />
<activity android:name="com.common.view.base.WebViewActivity" />
<activity
android:name=".ui.activity.AndroidSwipActivity"
android:theme="@style/ThemeSwipeBack" />
</application>

</manifest>
4 changes: 4 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="ThemeSwipeBack" parent="Theme.Swipe.Back">
<item name="colorPrimary">#db4336</item>
<item name="colorPrimaryDark">#b63120</item>
</style>

<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
Expand Down
15 changes: 15 additions & 0 deletions basic/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<resources>

<style name="Theme.Swipe.Back" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>

<style name="Theme.No.ActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>

</resources>

0 comments on commit b6fb30a

Please sign in to comment.