aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/res/values
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/main/res/values')
-rw-r--r--library/src/main/res/values/attr.xml23
-rw-r--r--library/src/main/res/values/colors.xml5
-rw-r--r--library/src/main/res/values/dimens.xml15
-rw-r--r--library/src/main/res/values/strings.xml3
-rw-r--r--library/src/main/res/values/strings_about.xml11
-rw-r--r--library/src/main/res/values/strings_commons.xml1
-rw-r--r--library/src/main/res/values/styles.xml21
7 files changed, 74 insertions, 5 deletions
diff --git a/library/src/main/res/values/attr.xml b/library/src/main/res/values/attr.xml
index 14ae027..6a32807 100644
--- a/library/src/main/res/values/attr.xml
+++ b/library/src/main/res/values/attr.xml
@@ -14,4 +14,27 @@
</attr>
</declare-styleable>
+ <declare-styleable name="KauInkPageIndicator">
+ <attr name="kau_dotDiameter" format="dimension" />
+ <attr name="kau_dotGap" format="dimension" />
+ <attr name="kau_animationDuration" format="integer" />
+ <attr name="kau_pageIndicatorColor" format="color" />
+ <attr name="kau_currentPageIndicatorColor" format="color" />
+ </declare-styleable>
+
+ <declare-styleable name="KauElasticDragDismissFrameLayout">
+ <attr name="kau_dragDismissDistance" format="dimension" />
+ <attr name="kau_dragDismissFraction" format="float" />
+ <attr name="kau_dragDismissScale" format="float" />
+ <attr name="kau_dragElasticity" format="float" />
+ </declare-styleable>
+
+ <declare-styleable name="KauCutoutTextView">
+ <attr name="kau_foregroundColor" format="color" />
+ <attr name="android:text" />
+ <attr name="android:minHeight" />
+ <attr name="kau_heightPercentageToScreen" format="float" />
+ <attr name="kau_font" format="string" />
+ </declare-styleable>
+
</resources> \ No newline at end of file
diff --git a/library/src/main/res/values/colors.xml b/library/src/main/res/values/colors.xml
index dc95351..6d51597 100644
--- a/library/src/main/res/values/colors.xml
+++ b/library/src/main/res/values/colors.xml
@@ -1,3 +1,6 @@
<resources>
- <color name="kau_search_full_shadow">#80000000</color>
+ <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>
</resources>
diff --git a/library/src/main/res/values/dimens.xml b/library/src/main/res/values/dimens.xml
index cbb378a..d45643e 100644
--- a/library/src/main/res/values/dimens.xml
+++ b/library/src/main/res/values/dimens.xml
@@ -13,5 +13,20 @@
<dimen name="kau_color_circle_size">56dp</dimen>
<dimen name="kau_status_bar_height">24dp</dimen>
+ <dimen name="kau_drag_dismiss_distance">112dp</dimen> <!-- 2 * ?android:actionBarSize -->
+
+ <dimen name="kau_spacing_normal">8dp</dimen>
+ <dimen name="kau_spacing_micro">4dp</dimen>
+ <dimen name="kau_spacing_large">32dp</dimen>
+ <dimen name="kau_spacing_xlarge">48dp</dimen>
+ <dimen name="kau_spacing_huge">64dp</dimen>
+ <dimen name="kau_padding_normal">16dp</dimen>
+ <dimen name="kau_padding_large">24dp</dimen>
+ <dimen name="kau_fab_size">56dp</dimen>
+ <dimen name="kau_fab_radius">28dp</dimen>
+ <dimen name="kau_display_4_text_size">112sp</dimen>
+
+ <dimen name="kau_about_header_height">224dp</dimen>
+
</resources>
diff --git a/library/src/main/res/values/strings.xml b/library/src/main/res/values/strings.xml
index cfede89..1f76924 100644
--- a/library/src/main/res/values/strings.xml
+++ b/library/src/main/res/values/strings.xml
@@ -10,6 +10,5 @@
<string name="kau_kpref_title_placeholder">Title Placeholder</string>
<string name="kau_pref_icon">Pref Icon</string>
- <string name="kau_send_via">Send via</string>
-
+ <string name="kau_about_libraries_intro">This app would not be possible without the following great libraries.</string>
</resources>
diff --git a/library/src/main/res/values/strings_about.xml b/library/src/main/res/values/strings_about.xml
index be891d2..489e5c2 100644
--- a/library/src/main/res/values/strings_about.xml
+++ b/library/src/main/res/values/strings_about.xml
@@ -7,8 +7,15 @@
<string name="library_kau_authorWebsite" tools:ignore="ResourceName">https://www.allanwang.ca/dev/</string>
<!-- Library section -->
<string name="library_kau_libraryName" tools:ignore="ResourceName">KAU</string>
- <string name="library_kau_libraryDescription" tools:ignore="ResourceName">An extensive collection of Kotlin Android Utilities.</string>
- <string name="library_kau_libraryWebsite" tools:ignore="ResourceName">https://github.com/AllanWang/KAU</string>
+ <string name="library_kau_libraryDescription" tools:ignore="ResourceName">
+ <![CDATA[
+ An extensive collection of Kotlin Android Utilities.
+ <br/><br/>
+ KAU aims to make many common functions executable in one line. It adds numerous extensions to match Kotlin\'s DSL,
+ and supports completely customizable view groups that are used in almost any app project.
+ ]]>
+ </string>
+ <string name="library_kau_libraryWebsite" tools:ignore="ResourceName">https://allanwang.github.io/KAU/</string>
<string name="library_kau_libraryVersion" tools:ignore="ResourceName">1.3</string>
<!-- OpenSource section -->
<string name="library_kau_isOpenSource" tools:ignore="ResourceName">true</string>
diff --git a/library/src/main/res/values/strings_commons.xml b/library/src/main/res/values/strings_commons.xml
index 89d697e..0ca785d 100644
--- a/library/src/main/res/values/strings_commons.xml
+++ b/library/src/main/res/values/strings_commons.xml
@@ -52,5 +52,6 @@ Most resources are verbatim and x represents a formatted item
<string name="kau_search">Search</string>
<string name="kau_no_results_found">No Results Found</string>
<string name="kau_about_app">About App</string>
+ <string name="kau_send_via">Send via</string>
<string name="kau_about_x">About %s</string>
</resources>
diff --git a/library/src/main/res/values/styles.xml b/library/src/main/res/values/styles.xml
new file mode 100644
index 0000000..6f5e3c1
--- /dev/null
+++ b/library/src/main/res/values/styles.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<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>
+ <item name="android:windowDrawsSystemBarBackgrounds">true</item>
+ </style>
+
+ <style name="Kau.Translucent.About">
+ <item name="android:windowEnterTransition">@transition/kau_about_enter</item>
+ <item name="android:windowReturnTransition">@transition/kau_about_return_upwards</item>
+ </style>
+
+</resources> \ No newline at end of file