aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/main/res')
-rw-r--r--library/src/main/res/drawable/kau_transparent.xml5
-rw-r--r--library/src/main/res/layout/kau_changelog_content.xml27
-rw-r--r--library/src/main/res/layout/kau_changelog_title.xml14
-rw-r--r--library/src/main/res/layout/kau_preference.xml68
-rw-r--r--library/src/main/res/layout/kau_preference_checkbox.xml7
-rw-r--r--library/src/main/res/layout/kau_preference_header.xml10
-rw-r--r--library/src/main/res/values/dimens.xml15
-rw-r--r--library/src/main/res/values/ids.xml8
-rw-r--r--library/src/main/res/values/strings.xml15
-rw-r--r--library/src/main/res/xml/kau_changelog.xml14
10 files changed, 183 insertions, 0 deletions
diff --git a/library/src/main/res/drawable/kau_transparent.xml b/library/src/main/res/drawable/kau_transparent.xml
new file mode 100644
index 0000000..399a46b
--- /dev/null
+++ b/library/src/main/res/drawable/kau_transparent.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle">
+ <solid android:color="@android:color/transparent" />
+</shape> \ No newline at end of file
diff --git a/library/src/main/res/layout/kau_changelog_content.xml b/library/src/main/res/layout/kau_changelog_content.xml
new file mode 100644
index 0000000..90cca40
--- /dev/null
+++ b/library/src/main/res/layout/kau_changelog_content.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:paddingBottom="8.4sp"
+ android:paddingLeft="@dimen/kau_dialog_margin"
+ android:paddingRight="@dimen/kau_dialog_margin">
+
+ <!--padding bottom is 14sp * 0.6-->
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:lineSpacingMultiplier="1.6"
+ android:paddingRight="5dp"
+ android:text="@string/kau_u2022"
+ android:textAppearance="@style/TextAppearance.AppCompat.Small" />
+
+ <TextView
+ android:id="@+id/kau_changelog_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:lineSpacingMultiplier="1.6"
+ android:textAppearance="@style/TextAppearance.AppCompat.Small" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/library/src/main/res/layout/kau_changelog_title.xml b/library/src/main/res/layout/kau_changelog_title.xml
new file mode 100644
index 0000000..e885e02
--- /dev/null
+++ b/library/src/main/res/layout/kau_changelog_title.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/kau_changelog_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:lineSpacingMultiplier="1.6"
+ android:paddingBottom="@dimen/kau_dialog_margin_bottom"
+ android:paddingLeft="@dimen/kau_dialog_margin"
+ android:paddingRight="@dimen/kau_dialog_margin"
+ android:paddingTop="@dimen/kau_dialog_margin_bottom"
+ android:textAppearance="@style/TextAppearance.AppCompat.Medium"
+ android:textStyle="bold" />
+
diff --git a/library/src/main/res/layout/kau_preference.xml b/library/src/main/res/layout/kau_preference.xml
new file mode 100644
index 0000000..265015a
--- /dev/null
+++ b/library/src/main/res/layout/kau_preference.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?android:attr/selectableItemBackground"
+ android:baselineAligned="false"
+ android:clipToPadding="false"
+ android:gravity="center_vertical"
+ android:minHeight="?android:attr/listPreferredItemHeightSmall"
+ android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
+ android:paddingStart="?android:attr/listPreferredItemPaddingStart">
+
+ <LinearLayout
+ android:id="@+id/kau_pref_icon_frame"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="-4dp"
+ android:gravity="start|center_vertical"
+ android:minWidth="60dp"
+ android:orientation="horizontal"
+ android:paddingBottom="4dp"
+ android:paddingEnd="12dp"
+ android:paddingTop="4dp">
+
+ <ImageView
+ android:id="@+id/kau_pref_icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:maxHeight="48dp"
+ android:maxWidth="48dp" />
+ </LinearLayout>
+
+ <RelativeLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:paddingBottom="16dp"
+ android:paddingTop="16dp">
+
+ <TextView
+ android:id="@+id/kau_pref_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="marquee"
+ android:textColor="?android:attr/textColorPrimary"
+ android:textAppearance="?android:attr/textAppearanceListItem" />
+
+ <TextView
+ android:id="@+id/kau_pref_desc"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignStart="@id/kau_pref_title"
+ android:layout_below="@id/kau_pref_title"
+ android:ellipsize="end"
+ android:maxLines="10"
+ android:textAppearance="?android:attr/textAppearanceListItemSecondary"
+ android:textColor="?android:attr/textColorSecondary" />
+
+ </RelativeLayout>
+
+ <LinearLayout android:id="@+id/kau_pref_inner_frame"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:gravity="end|center_vertical"
+ android:paddingLeft="16dp"
+ android:orientation="vertical" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/library/src/main/res/layout/kau_preference_checkbox.xml b/library/src/main/res/layout/kau_preference_checkbox.xml
new file mode 100644
index 0000000..1f2807b
--- /dev/null
+++ b/library/src/main/res/layout/kau_preference_checkbox.xml
@@ -0,0 +1,7 @@
+<CheckBox xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/kau_pref_checkbox"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:focusable="false"
+ android:clickable="false"
+ android:background="@null" /> \ No newline at end of file
diff --git a/library/src/main/res/layout/kau_preference_header.xml b/library/src/main/res/layout/kau_preference_header.xml
new file mode 100644
index 0000000..5deece3
--- /dev/null
+++ b/library/src/main/res/layout/kau_preference_header.xml
@@ -0,0 +1,10 @@
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/kau_pref_title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="8dip"
+ android:paddingEnd="?android:attr/listPreferredItemPaddingRight"
+ android:paddingStart="?android:attr/listPreferredItemPaddingLeft"
+ android:paddingTop="16dip"
+ android:textColor="?android:attr/colorAccent"
+ android:textSize="14sp" /> \ No newline at end of file
diff --git a/library/src/main/res/values/dimens.xml b/library/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..85ef703
--- /dev/null
+++ b/library/src/main/res/values/dimens.xml
@@ -0,0 +1,15 @@
+<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>
+
+</resources>
diff --git a/library/src/main/res/values/ids.xml b/library/src/main/res/values/ids.xml
new file mode 100644
index 0000000..36be2b2
--- /dev/null
+++ b/library/src/main/res/values/ids.xml
@@ -0,0 +1,8 @@
+<?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" />
+</resources> \ No newline at end of file
diff --git a/library/src/main/res/values/strings.xml b/library/src/main/res/values/strings.xml
new file mode 100644
index 0000000..98dc0a1
--- /dev/null
+++ b/library/src/main/res/values/strings.xml
@@ -0,0 +1,15 @@
+<resources>
+ <string name="kau_changelog">Changelog</string>
+ <string name="kau_great">Great</string>
+ <string name="kau_error">Error</string>
+ <string name="kau_back">Back</string>
+ <string name="kau_cancel">Cancel</string>
+ <string name="kau_done">Done</string>
+ <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>
+</resources>
diff --git a/library/src/main/res/xml/kau_changelog.xml b/library/src/main/res/xml/kau_changelog.xml
new file mode 100644
index 0000000..e570995
--- /dev/null
+++ b/library/src/main/res/xml/kau_changelog.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <!--This is a template-->
+
+ <!--
+ <version title="v"/>
+ <item text="" />
+ -->
+
+ <version title="v0.1" />
+ <item text="Initial Changelog" />
+ <item text="" />
+</resources> \ No newline at end of file