aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/res/values
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-04 16:08:03 -0700
committerAllan Wang <me@allanwang.ca>2017-07-04 16:08:03 -0700
commitcf2a7fcd0880a8d276970124cdb5d5845d5631fe (patch)
treecc38ead7853ddb85c9c988e94a4af605e1e676f8 /core/src/main/res/values
parentfe4632c34a1d671503e0242a269865b884545e13 (diff)
downloadkau-cf2a7fcd0880a8d276970124cdb5d5845d5631fe.tar.gz
kau-cf2a7fcd0880a8d276970124cdb5d5845d5631fe.tar.bz2
kau-cf2a7fcd0880a8d276970124cdb5d5845d5631fe.zip
Separate core components in its own module
Diffstat (limited to 'core/src/main/res/values')
-rw-r--r--core/src/main/res/values/attr.xml41
-rw-r--r--core/src/main/res/values/colors.xml6
-rw-r--r--core/src/main/res/values/dimens.xml37
-rw-r--r--core/src/main/res/values/dimens_search.xml27
-rw-r--r--core/src/main/res/values/ids.xml16
-rw-r--r--core/src/main/res/values/strings.xml15
-rw-r--r--core/src/main/res/values/strings_about.xml27
-rw-r--r--core/src/main/res/values/strings_commons.xml57
-rw-r--r--core/src/main/res/values/styles.xml21
-rw-r--r--core/src/main/res/values/styles_animations.xml30
10 files changed, 277 insertions, 0 deletions
diff --git a/core/src/main/res/values/attr.xml b/core/src/main/res/values/attr.xml
new file mode 100644
index 0000000..49be8d9
--- /dev/null
+++ b/core/src/main/res/values/attr.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<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" />
+ </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>
+
+ <declare-styleable name="ElasticDragDismissFrameLayout">
+ <attr name="dragDismissDistance" format="dimension" />
+ <attr name="dragDismissFraction" format="float" />
+ <attr name="dragDismissScale" format="float" />
+ <attr name="dragElasticity" format="float" />
+ </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>
+
+</resources> \ No newline at end of file
diff --git a/core/src/main/res/values/colors.xml b/core/src/main/res/values/colors.xml
new file mode 100644
index 0000000..6d51597
--- /dev/null
+++ b/core/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+<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>
+</resources>
diff --git a/core/src/main/res/values/dimens.xml b/core/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..5bf6da4
--- /dev/null
+++ b/core/src/main/res/values/dimens.xml
@@ -0,0 +1,37 @@
+<resources>
+ <!-- Default screen margins, per the Android Design guidelines. -->
+ <dimen name="kau_activity_horizontal_margin">16dp</dimen>
+ <dimen name="kau_activity_vertical_margin">16dp</dimen>
+ <dimen name="kau_dialog_margin">24dp</dimen>
+ <dimen name="kau_dialog_margin_bottom">16dp</dimen>
+
+ <dimen name="kau_fab_margin">16dp</dimen>
+ <dimen name="kau_appbar_padding_top">8dp</dimen>
+ <dimen name="kau_splash_logo">16dp</dimen>
+ <dimen name="kau_progress_bar_height">1dip</dimen>
+ <dimen name="kau_account_image_size">100dp</dimen>
+ <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>
+
+ <!-- avatar should be a 40dp asset in a 48dp touch target & optically aligned with standard padding -->
+ <dimen name="kau_avatar_size">40dp</dimen>
+ <dimen name="kau_avatar_bounds">48dp</dimen>
+ <dimen name="kau_avatar_padding">4dp</dimen> <!-- (avatar_bounds - avatar_size) / 2 -->
+ <dimen name="kau_avatar_margin">12dp</dimen> <!-- padding_normal - avatar_padding -->
+ <dimen name="kau_avatar_ripple_radius">20dp</dimen> <!-- avatar_size / 2 -->
+</resources>
diff --git a/core/src/main/res/values/dimens_search.xml b/core/src/main/res/values/dimens_search.xml
new file mode 100644
index 0000000..acf79cb
--- /dev/null
+++ b/core/src/main/res/values/dimens_search.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <dimen name="kau_search_height">46dp</dimen>
+
+ <dimen name="kau_search_base_margin">4dp</dimen>
+ <dimen name="kau_search_base_corners">2dp</dimen>
+ <dimen name="kau_search_key_line_8">8dp</dimen>
+ <dimen name="kau_search_key_line_16">16dp</dimen>
+ <dimen name="kau_search_divider">1dp</dimen>
+
+ <dimen name="kau_search_item_margin_text">24dp</dimen>
+ <dimen name="kau_search_item_height">56dp</dimen>
+ <dimen name="kau_search_icon">56dp</dimen>
+ <dimen name="kau_search_progress">24dp</dimen>
+ <dimen name="kau_search_text_micro">12sp</dimen>
+ <dimen name="kau_search_text_small">14sp</dimen>
+ <dimen name="kau_search_text_medium">16sp</dimen>
+ <dimen name="kau_search_reveal">24dp</dimen>
+
+ <dimen name="kau_search_filter_margin_top">4dp</dimen>
+ <dimen name="kau_search_filter_margin_start">12dp</dimen>
+
+ <dimen name="kau_search_menu_item_margin">1dp</dimen>
+ <dimen name="kau_search_menu_item_margin_left_right">2dp</dimen>
+
+</resources> \ No newline at end of file
diff --git a/core/src/main/res/values/ids.xml b/core/src/main/res/values/ids.xml
new file mode 100644
index 0000000..dd42392
--- /dev/null
+++ b/core/src/main/res/values/ids.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <item name="kau_item_account" type="id" />
+ <item name="kau_item_pref_header" type="id" />
+ <item name="kau_item_pref_text" type="id" />
+ <item name="kau_item_pref_checkbox" type="id" />
+ <item name="kau_item_pref_color_picker" type="id" />
+ <item name="kau_item_pref_sub_item" type="id" />
+ <item name="kau_item_pref_plain_text" type="id" />
+ <item name="kau_item_search" type="id" />
+ <item name="kau_item_cutout" type="id" />
+ <item name="kau_item_header_big_margin_top" type="id" />
+ <item name="kau_item_card" type="id" />
+ <item name="kau_item_library" type="id" />
+ <item name="kau_item_about_main" type="id" />
+</resources> \ No newline at end of file
diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml
new file mode 100644
index 0000000..5ea5a23
--- /dev/null
+++ b/core/src/main/res/values/strings.xml
@@ -0,0 +1,15 @@
+<resources>
+ <string name="kau_u2022">•</string>
+ <string name="kau_color_picker">Color Picker</string>
+
+ <!--Color Picker-->
+ <string name="kau_md_custom">Custom</string>
+ <string name="kau_md_presets">Presets</string>
+ <string name="kau_md_color_palette">Color Palette</string>
+
+ <string name="kau_kpref_title_placeholder">Title Placeholder</string>
+ <string name="kau_pref_icon">Pref Icon</string>
+
+ <string name="kau_about_libraries_intro">This app would not be possible without the following great libraries.</string>
+ <string name="kau_dependencies_used">Dependencies Used</string>
+</resources>
diff --git a/core/src/main/res/values/strings_about.xml b/core/src/main/res/values/strings_about.xml
new file mode 100644
index 0000000..e659fc3
--- /dev/null
+++ b/core/src/main/res/values/strings_about.xml
@@ -0,0 +1,27 @@
+<resources xmlns:tools="http://schemas.android.com/tools">
+ <string name="library_kau_libraryVersion" tools:ignore="ResourceName">1.4</string>
+
+ <string name="define_kau" tools:ignore="ResourceName" />
+ <!-- Author section -->
+ <string name="library_kau_author" tools:ignore="ResourceName">Allan Wang</string>
+ <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">
+ <![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>
+ <!-- OpenSource section -->
+ <string name="library_kau_isOpenSource" tools:ignore="ResourceName">true</string>
+ <string name="library_kau_repositoryLink" tools:ignore="ResourceName">https://github.com/AllanWang/KAU</string>
+ <!-- ClassPath for autoDetect section -->
+ <string name="library_kau_classPath" tools:ignore="ResourceName">ca.allanwang.kau</string>
+ <!-- License section -->
+ <string name="library_kau_licenseId" tools:ignore="ResourceName">apache_2_0</string>
+ <!-- Custom variables section -->
+</resources> \ No newline at end of file
diff --git a/core/src/main/res/values/strings_commons.xml b/core/src/main/res/values/strings_commons.xml
new file mode 100644
index 0000000..0ca785d
--- /dev/null
+++ b/core/src/main/res/values/strings_commons.xml
@@ -0,0 +1,57 @@
+<!--
+A collection of common string values
+Most resources are verbatim and x represents a formatted item
+-->
+
+<resources>
+ <string name="kau_add_account">Add Account</string>
+ <string name="kau_amoled" translatable="false">AMOLED</string>
+ <string name="kau_back">Back</string>
+ <string name="kau_cancel">Cancel</string>
+ <string name="kau_changelog">Changelog</string>
+ <string name="kau_close">Close</string>
+ <string name="kau_contact_us">Contact Us</string>
+ <string name="kau_custom">Custom</string>
+ <string name="kau_dark">Dark</string>
+ <string name="kau_default">Default</string>
+ <string name="kau_do_not_show_again">Do not show again</string>
+ <string name="kau_done">Done</string>
+ <string name="kau_error">Error</string>
+ <string name="kau_exit">Exit</string>
+ <string name="kau_exit_confirmation">Are you sure you want to exit?</string>
+ <string name="kau_exit_confirmation_x">Are you sure you want to exit %s?</string>
+ <string name="kau_glass">Glass</string>
+ <string name="kau_got_it">Got it</string>
+ <string name="kau_great">Great</string>
+ <string name="kau_hide">Hide</string>
+ <string name="kau_light">Light</string>
+ <string name="kau_login">Login</string>
+ <string name="kau_logout">Logout</string>
+ <string name="kau_logout_confirm_as_x">Are you sure you want to log out as %s?</string>
+ <string name="kau_lorem_ipsum" translatable="false">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</string>
+ <string name="kau_manage_account">Manage Account</string>
+ <string name="kau_maybe">Maybe</string>
+ <string name="kau_menu">Menu</string>
+ <string name="kau_no">No</string>
+ <string name="kau_none">None</string>
+ <string name="kau_ok">@android:string/ok</string>
+ <string name="kau_one_day">1 day</string>
+ <string name="kau_one_hour">1 hour</string>
+ <string name="kau_play_store">Play Store</string>
+ <string name="kau_rate">Rate</string>
+ <string name="kau_report_bug">Report A Bug</string>
+ <string name="kau_send_feedback">Send Feedback</string>
+ <string name="kau_settings">Settings</string>
+ <string name="kau_thank_you">Thank You</string>
+ <string name="kau_uh_oh">Uh Oh</string>
+ <string name="kau_x_days">%d days</string>
+ <string name="kau_x_hours">%d hours</string>
+ <string name="kau_x_minutes">%d minutes</string>
+ <string name="kau_warning">Warning</string>
+ <string name="kau_yes">Yes</string>
+ <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/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml
new file mode 100644
index 0000000..2067c6d
--- /dev/null
+++ b/core/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_enter_slide_top</item>
+ <item name="android:windowReturnTransition">@transition/kau_about_return_upwards</item>
+ </style>
+
+</resources> \ No newline at end of file
diff --git a/core/src/main/res/values/styles_animations.xml b/core/src/main/res/values/styles_animations.xml
new file mode 100644
index 0000000..a991132
--- /dev/null
+++ b/core/src/main/res/values/styles_animations.xml
@@ -0,0 +1,30 @@
+<resources>
+
+ <style name="KauSlideIn" parent="@android:style/Animation.Activity">
+ <item name="android:activityOpenEnterAnimation">@anim/kau_slide_in_right</item>
+ <item name="android:activityCloseEnterAnimation">@anim/kau_slide_in_right</item>
+ <item name="android:taskOpenEnterAnimation">@anim/kau_slide_in_right</item>
+ <item name="android:taskCloseEnterAnimation">@anim/kau_slide_in_right</item>
+ <item name="android:taskToFrontEnterAnimation">@anim/kau_slide_in_right</item>
+ <item name="android:windowEnterAnimation">@anim/kau_slide_in_right</item>
+ </style>
+
+ <style name="KauSlideInSlideOut" parent="@style/KauSlideIn">
+ <item name="android:activityOpenExitAnimation">@anim/kau_slide_out_right</item>
+ <item name="android:activityCloseExitAnimation">@anim/kau_slide_out_right</item>
+ <item name="android:taskOpenExitAnimation">@anim/kau_slide_out_right</item>
+ <item name="android:taskCloseExitAnimation">@anim/kau_slide_out_right</item>
+ <item name="android:taskToFrontExitAnimation">@anim/kau_slide_out_right</item>
+ <item name="android:windowExitAnimation">@anim/kau_slide_out_right</item>
+ </style>
+
+ <style name="KauSlideInFadeOut" parent="@style/KauSlideIn">
+ <item name="android:activityOpenExitAnimation">@anim/kau_fade_out</item>
+ <item name="android:activityCloseExitAnimation">@anim/kau_fade_out</item>
+ <item name="android:taskOpenExitAnimation">@anim/kau_fade_out</item>
+ <item name="android:taskCloseExitAnimation">@anim/kau_fade_out</item>
+ <item name="android:taskToFrontExitAnimation">@anim/kau_fade_out</item>
+ <item name="android:windowExitAnimation">@anim/kau_fade_out</item>
+ </style>
+
+</resources>