Skip to content

Commit

Permalink
Release v3.2.5 (#26)
Browse files Browse the repository at this point in the history
* Move transparent style to core

* Update version
  • Loading branch information
AllanWang authored Aug 5, 2017
1 parent a2a11ff commit caaa565
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 12 deletions.
10 changes: 0 additions & 10 deletions core-ui/src/main/res-public/values-v21/styles.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<resources>
<style name="Kau.Translucent">
<item name="android:windowBackground">@color/kau_shadow_overlay</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowIsFloating">false</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
</style>

<style name="Kau.Translucent.SlideBottom">
<item name="android:windowEnterTransition">@transition/kau_enter_slide_bottom</item>
<item name="android:windowReturnTransition">@transition/kau_exit_slide_bottom</item>
Expand Down
1 change: 0 additions & 1 deletion core-ui/src/main/res-public/values/public.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<public name='kau_elastic_recycler_activity' type='layout' />
<public name='kau_recycler_detached_background' type='layout' />
<public name='kau_recycler_textslider' type='layout' />
<public name='kau_shadow_overlay' type='color' />
<public name='Kau.Translucent' type='style' />
<public name='Kau.Translucent.NoAnimation' type='style' />
<public name='Kau.Translucent.SlideBottom' type='style' />
Expand Down
2 changes: 2 additions & 0 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ kauSwipeOnDestroy() //in the onDestroy method
kauSwipeFinish() //optional; replace onBackPressed with this to animate the activity finish
```
For the best results, activities should be translucent. See `Kau.Transparent` for a base style example.
Special thanks goes to the original project, [SwipeBackHelper](https://github.com/Jude95/SwipeBackHelper)
KAU's swipe is a Kotlin rewrite, along with support for all directions and weakly referenced contexts.
Expand Down
13 changes: 13 additions & 0 deletions core/src/main/res-public/values-v21/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<style name="Kau.Translucent">
<item name="android:windowBackground">@color/kau_shadow_overlay</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowIsFloating">false</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
</style>
</resources>
File renamed without changes.
2 changes: 2 additions & 0 deletions core/src/main/res-public/values/public.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<public name='kau_exit_slide_left' type='transition' />
<public name='kau_exit_slide_right' type='transition' />
<public name='kau_exit_slide_top' type='transition' />
<public name='kau_shadow_overlay' type='color' />
<public name='kau_activity_horizontal_margin' type='dimen' />
<public name='kau_activity_vertical_margin' type='dimen' />
<public name='kau_dialog_margin' type='dimen' />
Expand Down Expand Up @@ -106,6 +107,7 @@
<public name='kau_0' type='string' />
<public name='kau_bullet_point' type='string' />
<public name='Kau' type='style' />
<public name='Kau.Translucent' type='style' />
<public name='KauFadeIn' type='style' />
<public name='KauFadeInFadeOut' type='style' />
<public name='KauSlideInRight' type='style' />
Expand Down
9 changes: 9 additions & 0 deletions core/src/main/res-public/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<resources>
<style name="Kau" parent="Theme.AppCompat.NoActionBar"/>

<style name="Kau.Translucent">
<item name="android:windowBackground">@color/kau_shadow_overlay</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowIsFloating">false</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowNoTitle">true</item>
</style>
</resources>
2 changes: 2 additions & 0 deletions docs/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* :core: Fix FAQ background
* :core: Create FileUtils
* :core: Create NotificationUtils
* :core: Update swipe to remove most exceptions
* :core: Make logging class functions inline
* :core-ui: Move reactive libs to :searchview:

## v3.2.3
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ TARGET_SDK=26
BUILD_TOOLS=26.0.1
ANDROID_SUPPORT_LIBS=26.0.0

VERSION_NAME=3.2.4
VERSION_NAME=3.2.5

KOTLIN=1.1.3-2
ABOUT_LIBRARIES=5.9.7
Expand Down
3 changes: 3 additions & 0 deletions sample/src/main/res/xml/kau_changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<item text=":core: Fix FAQ background" />
<item text=":core: Create FileUtils" />
<item text=":core: Create NotificationUtils" />
<item text=":core: Update swipe to remove most exceptions" />
<item text=":core: Make logging class functions inline" />
<item text=":core: Create removeIf for mutableIteratables" />
<item text=":core-ui: Move reactive libs to :searchview:" />
<item text="" />
<item text="" />
Expand Down

0 comments on commit caaa565

Please sign in to comment.