aboutsummaryrefslogtreecommitdiff
path: root/core-ui/src/main/res/values
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-18 20:16:23 -0700
committerGitHub <noreply@github.com>2017-07-18 20:16:23 -0700
commit8f2b5ac043f47cc44f43c3788d1377083fb339a2 (patch)
tree8f91042414de211cbfe67a76298300884f46a765 /core-ui/src/main/res/values
parent4eee8d59c21b2061b9f5fd0e805ca60ab84c3585 (diff)
downloadkau-8f2b5ac043f47cc44f43c3788d1377083fb339a2.tar.gz
kau-8f2b5ac043f47cc44f43c3788d1377083fb339a2.tar.bz2
kau-8f2b5ac043f47cc44f43c3788d1377083fb339a2.zip
Dev 2.1 (#8)
* Rewrite animation interfaces * Update changelog * Add scale factor for slide * Remove margins in iitems and replace with decorators * Remove mutable list * Switch cardiitem to use lambdas for click * status * Utils update and imagepicker fixes * Remove stringholder * Add fade in fade out * Increment about version * Rename fromedge to direction in javadocs * More logging * Add logging and docs * Make card icons visible * Update email builder and icon padding * Create elastic recycler activity * Fix card iitem * Add lint check and plurals * Inline all the things * Format and sort xml * Update dependencies and increment version
Diffstat (limited to 'core-ui/src/main/res/values')
-rw-r--r--core-ui/src/main/res/values/attr.xml58
-rw-r--r--core-ui/src/main/res/values/colors.xml4
-rw-r--r--core-ui/src/main/res/values/strings.xml4
-rw-r--r--core-ui/src/main/res/values/styles.xml16
4 files changed, 46 insertions, 36 deletions
diff --git a/core-ui/src/main/res/values/attr.xml b/core-ui/src/main/res/values/attr.xml
index 49be8d9..271d132 100644
--- a/core-ui/src/main/res/values/attr.xml
+++ b/core-ui/src/main/res/values/attr.xml
@@ -1,41 +1,39 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="ResourceName">
-
<declare-styleable name="BoundedCardView">
- <attr name="maxHeight" format="dimension" />
- <attr name="maxHeightPercent" format="float" />
+ <attr format="dimension" name="maxHeight"/>
+ <attr format="float" name="maxHeightPercent"/>
</declare-styleable>
- <declare-styleable name="TextSlider">
- <attr name="animation_type" format="enum">
- <enum name="none" value="1000" />
- <enum name="slide_horizontal" value="1001" />
- <enum name="slide_vertical" value="1002" />
- </attr>
- </declare-styleable>
-
- <declare-styleable name="InkPageIndicator">
- <attr name="dotDiameter" format="dimension" />
- <attr name="dotGap" format="dimension" />
- <attr name="animationDuration" format="integer" />
- <attr name="pageIndicatorColor" format="color" />
- <attr name="currentPageIndicatorColor" format="color" />
+ <declare-styleable name="CutoutView">
+ <attr format="color" name="foregroundColor"/>
+ <attr name="android:text"/>
+ <attr name="android:drawable"/>
+ <attr name="android:minHeight"/>
+ <attr format="float" name="heightPercentageToScreen"/>
+ <attr name="font"/>
</declare-styleable>
<declare-styleable name="ElasticDragDismissFrameLayout">
- <attr name="dragDismissDistance" format="dimension" />
- <attr name="dragDismissFraction" format="float" />
- <attr name="dragDismissScale" format="float" />
- <attr name="dragElasticity" format="float" />
+ <attr format="dimension" name="dragDismissDistance"/>
+ <attr format="float" name="dragDismissFraction"/>
+ <attr format="float" name="dragDismissScale"/>
+ <attr format="float" name="dragElasticity"/>
</declare-styleable>
- <declare-styleable name="CutoutView">
- <attr name="foregroundColor" format="color" />
- <attr name="android:text" />
- <attr name="android:drawable" />
- <attr name="android:minHeight" />
- <attr name="heightPercentageToScreen" format="float" />
- <attr name="font"/>
+ <declare-styleable name="InkPageIndicator">
+ <attr format="dimension" name="dotDiameter"/>
+ <attr format="dimension" name="dotGap"/>
+ <attr format="integer" name="animationDuration"/>
+ <attr format="color" name="pageIndicatorColor"/>
+ <attr format="color" name="currentPageIndicatorColor"/>
</declare-styleable>
-</resources> \ No newline at end of file
+ <declare-styleable name="TextSlider">
+ <attr format="enum" name="animation_type">
+ <enum name="none" value="1000"/>
+ <enum name="slide_horizontal" value="1001"/>
+ <enum name="slide_vertical" value="1002"/>
+ </attr>
+ </declare-styleable>
+</resources>
diff --git a/core-ui/src/main/res/values/colors.xml b/core-ui/src/main/res/values/colors.xml
index 6d51597..273d6f1 100644
--- a/core-ui/src/main/res/values/colors.xml
+++ b/core-ui/src/main/res/values/colors.xml
@@ -1,6 +1,6 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<resources>
- <color name="kau_shadow_overlay">#80000000</color>
-
<color name="kau_about_page_indicator_dark">#80ffffff</color>
<color name="kau_about_page_indicator_dark_selected">#fff</color>
+ <color name="kau_shadow_overlay">#80000000</color>
</resources>
diff --git a/core-ui/src/main/res/values/strings.xml b/core-ui/src/main/res/values/strings.xml
new file mode 100644
index 0000000..80e6233
--- /dev/null
+++ b/core-ui/src/main/res/values/strings.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="kau_blurrable_imageview">Blurrable ImageView</string>
+</resources> \ No newline at end of file
diff --git a/core-ui/src/main/res/values/styles.xml b/core-ui/src/main/res/values/styles.xml
index f9fd7d4..dfbb6d3 100644
--- a/core-ui/src/main/res/values/styles.xml
+++ b/core-ui/src/main/res/values/styles.xml
@@ -1,7 +1,6 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
<resources>
-
- <style name="Kau" parent="Theme.AppCompat.NoActionBar" />
+ <style name="Kau" parent="Theme.AppCompat.NoActionBar"/>
<style name="Kau.Translucent">
<item name="android:windowBackground">@color/kau_shadow_overlay</item>
@@ -17,4 +16,13 @@
<item name="android:windowAnimationStyle">@null</item>
</style>
-</resources> \ No newline at end of file
+ <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>
+ </style>
+
+ <style name="Kau.Translucent.SlideTop">
+ <item name="android:windowEnterTransition">@transition/kau_enter_slide_top</item>
+ <item name="android:windowReturnTransition">@transition/kau_exit_slide_top</item>
+ </style>
+</resources>