aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/res/layout
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 /library/src/main/res/layout
parentfe4632c34a1d671503e0242a269865b884545e13 (diff)
downloadkau-cf2a7fcd0880a8d276970124cdb5d5845d5631fe.tar.gz
kau-cf2a7fcd0880a8d276970124cdb5d5845d5631fe.tar.bz2
kau-cf2a7fcd0880a8d276970124cdb5d5845d5631fe.zip
Separate core components in its own module
Diffstat (limited to 'library/src/main/res/layout')
-rw-r--r--library/src/main/res/layout/kau_about_section_libraries.xml27
-rw-r--r--library/src/main/res/layout/kau_about_section_main.xml46
-rw-r--r--library/src/main/res/layout/kau_activity_about.xml27
-rw-r--r--library/src/main/res/layout/kau_activity_kpref.xml54
-rw-r--r--library/src/main/res/layout/kau_changelog_content.xml28
-rw-r--r--library/src/main/res/layout/kau_changelog_title.xml14
-rw-r--r--library/src/main/res/layout/kau_iitem_card.xml79
-rw-r--r--library/src/main/res/layout/kau_iitem_cutout.xml9
-rw-r--r--library/src/main/res/layout/kau_iitem_header.xml17
-rw-r--r--library/src/main/res/layout/kau_iitem_library.xml124
-rw-r--r--library/src/main/res/layout/kau_preference.xml97
-rw-r--r--library/src/main/res/layout/kau_preference_checkbox.xml7
-rw-r--r--library/src/main/res/layout/kau_preference_color_preview.xml6
-rw-r--r--library/src/main/res/layout/kau_preference_header.xml10
-rw-r--r--library/src/main/res/layout/kau_preference_text.xml7
-rw-r--r--library/src/main/res/layout/kau_recycler_detached_background.xml27
-rw-r--r--library/src/main/res/layout/kau_recycler_textslider.xml34
-rw-r--r--library/src/main/res/layout/kau_search_iitem.xml61
-rw-r--r--library/src/main/res/layout/kau_search_view.xml113
19 files changed, 0 insertions, 787 deletions
diff --git a/library/src/main/res/layout/kau_about_section_libraries.xml b/library/src/main/res/layout/kau_about_section_libraries.xml
deleted file mode 100644
index 45c271b..0000000
--- a/library/src/main/res/layout/kau_about_section_libraries.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/about_library_container"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <TextView
- android:id="@+id/about_library_title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="@dimen/activity_horizontal_margin"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.5"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
-
- <android.support.v7.widget.RecyclerView
- android:id="@+id/about_library_recycler"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/about_library_title" />
-
-</android.support.constraint.ConstraintLayout>
diff --git a/library/src/main/res/layout/kau_about_section_main.xml b/library/src/main/res/layout/kau_about_section_main.xml
deleted file mode 100644
index 40d8dfb..0000000
--- a/library/src/main/res/layout/kau_about_section_main.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:showIn="@layout/kau_activity_about">
-
- <android.support.constraint.ConstraintLayout
- android:id="@+id/about_main_container"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <ca.allanwang.kau.views.CutoutView
- android:id="@+id/about_main_cutout"
- android:layout_width="0dp"
- android:layout_height="@dimen/kau_about_header_height"
- android:minHeight="@dimen/kau_about_header_height"
- app:foregroundColor="?android:colorAccent"
- app:heightPercentageToScreen="0.5"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
-
- <FrameLayout
- android:id="@+id/about_main_bottom_container"
- android:layout_width="0dp"
- android:layout_height="2000dp"
- android:background="?android:attr/colorBackground"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/about_main_cutout">
-
- <TextView
- android:id="@+id/about_main_bottom_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_margin="@dimen/activity_horizontal_margin" />
-
- </FrameLayout>
-
- </android.support.constraint.ConstraintLayout>
-
-</android.support.v4.widget.NestedScrollView>
diff --git a/library/src/main/res/layout/kau_activity_about.xml b/library/src/main/res/layout/kau_activity_about.xml
deleted file mode 100644
index 33cc781..0000000
--- a/library/src/main/res/layout/kau_activity_about.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<ca.allanwang.kau.widgets.ElasticDragDismissFrameLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/about_draggable_frame"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:dragDismissDistance="@dimen/kau_drag_dismiss_distance"
- app:dragDismissScale="0.95"
- tools:context=".about.AboutActivityBase">
-
- <android.support.v4.view.ViewPager
- android:id="@+id/about_pager"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
-
- <ca.allanwang.kau.widgets.InkPageIndicator
- android:id="@+id/about_indicator"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="top|center_horizontal"
- android:layout_marginTop="@dimen/kau_padding_normal"
- app:pageIndicatorColor="@color/kau_about_page_indicator_dark"
- app:currentPageIndicatorColor="@color/kau_about_page_indicator_dark_selected" />
-
-</ca.allanwang.kau.widgets.ElasticDragDismissFrameLayout>
diff --git a/library/src/main/res/layout/kau_activity_kpref.xml b/library/src/main/res/layout/kau_activity_kpref.xml
deleted file mode 100644
index 05cacb5..0000000
--- a/library/src/main/res/layout/kau_activity_kpref.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/kau_container"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <ca.allanwang.kau.views.RippleCanvas
- android:id="@+id/kau_toolbar_ripple"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintBottom_toBottomOf="@+id/kau_toolbar"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
-
- <android.support.v7.widget.Toolbar
- android:id="@id/kau_toolbar"
- android:layout_width="0dp"
- android:layout_height="?attr/actionBarSize"
- android:layout_marginTop="@dimen/kau_status_bar_height"
- android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent">
-
- <ca.allanwang.kau.widgets.TextSlider
- android:id="@+id/kau_toolbar_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:gravity="center"
- app:animation_type="slide_horizontal" />
-
- </android.support.v7.widget.Toolbar>
-
- <ca.allanwang.kau.views.RippleCanvas
- android:id="@+id/kau_ripple"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/kau_toolbar" />
-
- <ViewAnimator
- android:id="@+id/kau_holder"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/kau_toolbar" />
-
-</android.support.constraint.ConstraintLayout>
diff --git a/library/src/main/res/layout/kau_changelog_content.xml b/library/src/main/res/layout/kau_changelog_content.xml
deleted file mode 100644
index 92b87b9..0000000
--- a/library/src/main/res/layout/kau_changelog_content.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?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:id="@+id/kau_changelog_bullet"
- 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
deleted file mode 100644
index e885e02..0000000
--- a/library/src/main/res/layout/kau_changelog_title.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?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_iitem_card.xml b/library/src/main/res/layout/kau_iitem_card.xml
deleted file mode 100644
index 621da2e..0000000
--- a/library/src/main/res/layout/kau_iitem_card.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!--
- Generic card with an imageview, title, description, and button
- -->
-<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/kau_card_container"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/kau_padding_normal"
- android:background="?android:selectableItemBackground"
- android:minHeight="?android:listPreferredItemHeight">
-
- <android.support.constraint.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingBottom="@dimen/kau_padding_normal"
- android:paddingEnd="@dimen/kau_padding_normal"
- android:paddingTop="@dimen/kau_padding_normal">
-
- <ImageView
- android:id="@+id/kau_card_image"
- android:layout_width="@dimen/kau_avatar_bounds"
- android:layout_height="@dimen/kau_avatar_bounds"
- android:layout_marginEnd="@dimen/kau_avatar_margin"
- android:layout_marginStart="@dimen/kau_avatar_margin"
- android:padding="@dimen/kau_avatar_padding"
- android:scaleType="fitCenter"
- android:visibility="gone"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
-
-
- <TextView
- android:id="@+id/kau_card_title"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toEndOf="@id/kau_card_image"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_goneMarginStart="@dimen/kau_padding_normal" />
-
- <TextView
- android:id="@+id/kau_card_description"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:textAppearance="@style/TextAppearance.AppCompat.Body1"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toEndOf="@id/kau_card_image"
- app:layout_constraintTop_toBottomOf="@id/kau_card_title"
- app:layout_goneMarginStart="@dimen/kau_padding_normal" />
-
- <LinearLayout
- android:id="@+id/kau_card_bottom_row"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:visibility="gone"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toEndOf="@id/kau_card_image"
- app:layout_constraintTop_toBottomOf="@id/kau_card_description"
- app:layout_goneMarginStart="@dimen/kau_padding_normal">
-
- <Button
- android:id="@+id/kau_card_button"
- style="?android:borderlessButtonStyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/kau_spacing_normal"
- android:textColor="?attr/colorAccent" />
-
- </LinearLayout>
-
- </android.support.constraint.ConstraintLayout>
-
-</android.support.v7.widget.CardView>
diff --git a/library/src/main/res/layout/kau_iitem_cutout.xml b/library/src/main/res/layout/kau_iitem_cutout.xml
deleted file mode 100644
index a4b17ac..0000000
--- a/library/src/main/res/layout/kau_iitem_cutout.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<ca.allanwang.kau.views.CutoutView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/kau_cutout"
- android:layout_width="match_parent"
- android:layout_height="@dimen/kau_about_header_height"
- android:minHeight="@dimen/kau_about_header_height"
- app:foregroundColor="?android:colorAccent"
- app:heightPercentageToScreen="0.5" /> \ No newline at end of file
diff --git a/library/src/main/res/layout/kau_iitem_header.xml b/library/src/main/res/layout/kau_iitem_header.xml
deleted file mode 100644
index fa5a595..0000000
--- a/library/src/main/res/layout/kau_iitem_header.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/kau_header_container"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/kau_padding_normal"
- android:orientation="vertical">
-
- <TextView
- android:id="@+id/kau_header_text"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="@dimen/kau_spacing_xlarge"
- android:padding="@dimen/kau_padding_normal"
- android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
-
-</android.support.v7.widget.CardView> \ No newline at end of file
diff --git a/library/src/main/res/layout/kau_iitem_library.xml b/library/src/main/res/layout/kau_iitem_library.xml
deleted file mode 100644
index 1c3de5c..0000000
--- a/library/src/main/res/layout/kau_iitem_library.xml
+++ /dev/null
@@ -1,124 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/lib_item_card"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="@dimen/kau_padding_normal"
- android:background="?android:selectableItemBackground"
- android:clickable="true">
-
- <android.support.constraint.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingBottom="@dimen/kau_padding_normal"
- android:paddingEnd="@dimen/kau_padding_normal"
- android:paddingStart="@dimen/kau_padding_normal"
- android:paddingTop="@dimen/kau_padding_normal">
-
- <android.support.constraint.Guideline
- android:id="@+id/lib_g_m_v"
- android:layout_width="1dp"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- app:layout_constraintGuide_percent="0.5" />
-
- <TextView
- android:id="@+id/lib_item_name"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:gravity="start"
- android:maxLines="1"
- android:textSize="@dimen/textSizeLarge_openSource"
- android:textStyle="normal"
- app:layout_constraintEnd_toStartOf="@id/lib_g_m_v"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- tools:text="Library name" />
-
- <TextView
- android:id="@+id/lib_item_author"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginTop="2dp"
- android:gravity="end"
- android:maxLines="2"
- android:textSize="@dimen/textSizeSmall_openSource"
- android:textStyle="normal"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toEndOf="@id/lib_g_m_v"
- app:layout_constraintTop_toTopOf="parent"
- tools:text="Author" />
-
- <android.support.constraint.Barrier
- android:id="@+id/lib_item_top_divider"
- android:layout_width="wrap_content"
- android:layout_height="1px"
- android:layout_marginTop="@dimen/kau_spacing_micro"
- app:barrierDirection="bottom"
- app:constraint_referenced_ids="lib_item_name,lib_item_author"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent" />
-
- <TextView
- android:id="@+id/lib_item_description"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:maxLines="20"
- android:paddingBottom="@dimen/kau_spacing_normal"
- android:paddingTop="@dimen/kau_spacing_normal"
- android:textSize="@dimen/textSizeSmall_openSource"
- android:textStyle="normal"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/lib_item_top_divider"
- tools:text="Description" />
-
- <View
- android:id="@+id/lib_item_bottom_divider"
- android:layout_width="match_parent"
- android:layout_height="1px"
- android:layout_marginTop="@dimen/kau_spacing_micro"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/lib_item_description" />
-
- <TextView
- android:id="@+id/lib_item_version"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/kau_spacing_normal"
- android:layout_marginTop="@dimen/kau_spacing_micro"
- android:layout_weight="1"
- android:gravity="start"
- android:maxLines="1"
- android:textSize="@dimen/textSizeSmall_openSource"
- android:textStyle="normal"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toStartOf="@id/lib_g_m_v"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/lib_item_bottom_divider"
- tools:text="Version" />
-
- <TextView
- android:id="@+id/lib_item_license"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/kau_spacing_normal"
- android:layout_marginTop="@dimen/kau_spacing_micro"
- android:layout_weight="1"
- android:gravity="end"
- android:maxLines="1"
- android:textSize="@dimen/textSizeSmall_openSource"
- android:textStyle="normal"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toEndOf="@id/lib_g_m_v"
- app:layout_constraintTop_toBottomOf="@id/lib_item_bottom_divider"
- tools:text="License" />
-
- </android.support.constraint.ConstraintLayout>
-
-</android.support.v7.widget.CardView> \ No newline at end of file
diff --git a/library/src/main/res/layout/kau_preference.xml b/library/src/main/res/layout/kau_preference.xml
deleted file mode 100644
index c49951b..0000000
--- a/library/src/main/res/layout/kau_preference.xml
+++ /dev/null
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!--due to animations, we need a wrapper viewgroup so our changes will stick-->
-
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:baselineAligned="false"
- android:clipToPadding="false"
- android:minHeight="?android:attr/listPreferredItemHeightSmall"
- android:orientation="horizontal">
-
- <android.support.constraint.ConstraintLayout
- android:id="@+id/kau_pref_container"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="?android:attr/selectableItemBackground"
- android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
- android:paddingStart="?android:attr/listPreferredItemPaddingStart">
-
- <!--As per Android N, icons (24dp) are aligned to the left rather than centered-->
-
- <ImageView
- android:id="@+id/kau_pref_icon"
- android:layout_width="56dp"
- android:layout_height="56dp"
- android:layout_marginBottom="4dp"
- android:layout_marginTop="4dp"
- android:contentDescription="@string/kau_pref_icon"
- android:paddingEnd="32dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintVertical_bias="0.5"
- tools:layout_editor_absoluteX="0dp" />
-
- <TextView
- android:id="@+id/kau_pref_title"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:ellipsize="marquee"
- android:textAppearance="?android:attr/textAppearanceListItem"
- android:textColor="?android:attr/textColorPrimary"
- app:layout_constraintBottom_toTopOf="@+id/kau_pref_desc"
- app:layout_constraintEnd_toStartOf="@+id/kau_pref_inner_frame"
- app:layout_constraintHorizontal_bias="0"
- app:layout_constraintStart_toEndOf="@id/kau_pref_icon"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_goneMarginBottom="16dp"
- tools:layout_editor_absoluteX="-175dp" />
-
- <TextView
- android:id="@id/kau_pref_desc"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
- android:ellipsize="end"
- android:maxLines="10"
- android:textAppearance="?android:attr/textAppearanceListItemSecondary"
- android:textColor="?android:attr/textColorSecondary"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toStartOf="@id/kau_pref_inner_frame"
- app:layout_constraintHorizontal_bias="0"
- app:layout_constraintStart_toEndOf="@id/kau_pref_icon"
- app:layout_constraintTop_toBottomOf="@id/kau_pref_title"
- tools:layout_editor_absoluteX="-175dp" />
-
- <android.support.constraint.Barrier
- android:id="@+id/kau_pref_barrier"
- android:layout_width="1dp"
- android:layout_height="wrap_content"
- app:barrierDirection="end"
- app:constraint_referenced_ids="kau_pref_title,kau_pref_desc"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
-
- <LinearLayout
- android:id="@id/kau_pref_inner_frame"
- android:layout_width="wrap_content"
- android:layout_height="0dp"
- android:gravity="center_vertical|end"
- android:orientation="horizontal"
- android:paddingStart="16dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="1.0"
- app:layout_constraintStart_toEndOf="@id/kau_pref_barrier"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintVertical_bias="0.5"
- tools:layout_editor_absoluteX="1dp" />
-
- </android.support.constraint.ConstraintLayout>
-
-</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
deleted file mode 100644
index 5ab368b..0000000
--- a/library/src/main/res/layout/kau_preference_checkbox.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<CheckBox xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/kau_pref_inner_content"
- 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_color_preview.xml b/library/src/main/res/layout/kau_preference_color_preview.xml
deleted file mode 100644
index 2374971..0000000
--- a/library/src/main/res/layout/kau_preference_color_preview.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<ca.allanwang.kau.dialogs.color.CircleView xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/kau_pref_inner_content"
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:focusable="false"
- android:clickable="false" /> \ 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
deleted file mode 100644
index 5deece3..0000000
--- a/library/src/main/res/layout/kau_preference_header.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<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/layout/kau_preference_text.xml b/library/src/main/res/layout/kau_preference_text.xml
deleted file mode 100644
index bbabdfb..0000000
--- a/library/src/main/res/layout/kau_preference_text.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<TextView xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/kau_pref_inner_content"
- 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_recycler_detached_background.xml b/library/src/main/res/layout/kau_recycler_detached_background.xml
deleted file mode 100644
index 7295d66..0000000
--- a/library/src/main/res/layout/kau_recycler_detached_background.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <!-- we use a parallel view for the background rather than just setting a background on the
- recycler view for a nicer return transition. i.e. we want the background to fade and the
- list to slide out separately -->
- <View
- android:id="@+id/kau_recycler_detached_background"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="?android:colorBackground" />
-
- <!--defaults to a LinearLayoutManager-->
-
- <android.support.v7.widget.RecyclerView
- android:id="@+id/kau_recycler_detached"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:clipToPadding="false"
- android:paddingBottom="@dimen/kau_spacing_normal"
- android:scrollbars="vertical"
- app:layoutManager="android.support.v7.widget.LinearLayoutManager" />
-
-</FrameLayout>
diff --git a/library/src/main/res/layout/kau_recycler_textslider.xml b/library/src/main/res/layout/kau_recycler_textslider.xml
deleted file mode 100644
index 1402cfb..0000000
--- a/library/src/main/res/layout/kau_recycler_textslider.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/kau_container"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <android.support.v7.widget.Toolbar
- android:id="@+id/kau_toolbar"
- android:layout_width="0dp"
- android:layout_height="?attr/actionBarSize"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent">
-
- <ca.allanwang.kau.widgets.TextSlider
- android:id="@+id/kau_toolbar_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:gravity="center"
- app:animation_type="slide_vertical" />
-
- </android.support.v7.widget.Toolbar>
-
- <android.support.v7.widget.RecyclerView
- android:id="@+id/kau_recycler"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/kau_toolbar" />
-
-</android.support.constraint.ConstraintLayout>
diff --git a/library/src/main/res/layout/kau_search_iitem.xml b/library/src/main/res/layout/kau_search_iitem.xml
deleted file mode 100644
index efd7260..0000000
--- a/library/src/main/res/layout/kau_search_iitem.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/search_item_frame"
- android:layout_width="match_parent"
- android:layout_height="@dimen/kau_search_item_height"
- android:background="?android:attr/selectableItemBackground"
- android:clickable="true"
- android:focusable="true"
- android:gravity="start|center_vertical"
- android:orientation="horizontal">
-
- <ImageView
- android:id="@+id/search_icon"
- android:layout_width="@dimen/kau_search_icon"
- android:layout_height="0dp"
- android:contentDescription="@string/kau_search"
- android:scaleType="centerInside"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
-
- <TextView
- android:id="@+id/search_title"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_gravity="start|center_vertical"
- android:layout_weight="1"
- android:ellipsize="end"
- android:gravity="start|center_vertical"
- android:maxLines="1"
- android:paddingEnd="@dimen/kau_search_key_line_16"
- android:paddingStart="@dimen/kau_search_key_line_8"
- android:textIsSelectable="false"
- android:textSize="@dimen/kau_search_text_small"
- app:layout_constraintBottom_toTopOf="@+id/search_desc"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toEndOf="@id/search_icon"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintVertical_bias="0.5" />
-
- <TextView
- android:id="@id/search_desc"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_gravity="start|center_vertical"
- android:layout_weight="1"
- android:ellipsize="end"
- android:gravity="start|center_vertical"
- android:maxLines="1"
- android:paddingEnd="@dimen/kau_search_key_line_16"
- android:paddingStart="@dimen/kau_search_key_line_8"
- android:textIsSelectable="false"
- android:textSize="@dimen/kau_search_text_micro"
- android:visibility="gone"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toEndOf="@id/search_icon"
- app:layout_constraintTop_toBottomOf="@id/search_title" />
-
-</android.support.constraint.ConstraintLayout> \ No newline at end of file
diff --git a/library/src/main/res/layout/kau_search_view.xml b/library/src/main/res/layout/kau_search_view.xml
deleted file mode 100644
index ff9fd74..0000000
--- a/library/src/main/res/layout/kau_search_view.xml
+++ /dev/null
@@ -1,113 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<merge xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <View
- android:id="@+id/search_shadow"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/kau_shadow_overlay"
- android:visibility="gone" />
-
- <ca.allanwang.kau.views.BoundedCardView
- android:id="@+id/search_cardview"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/kau_search_base_margin"
- android:layout_marginStart="@dimen/kau_search_base_margin"
- app:cardCornerRadius="@dimen/kau_search_base_corners"
- app:maxHeightPercent="0.9">
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="@dimen/kau_search_height"
- android:focusable="true"
- android:focusableInTouchMode="true"
- android:gravity="start|center_vertical"
- android:orientation="horizontal">
-
- <ImageView
- android:id="@+id/search_nav"
- android:layout_width="@dimen/kau_search_icon"
- android:layout_height="match_parent"
- android:background="?android:attr/selectableItemBackgroundBorderless"
- android:clickable="true"
- android:contentDescription="@string/kau_search"
- android:focusable="true"
- android:scaleType="centerInside" />
-
- <android.support.v7.widget.AppCompatEditText
- android:id="@+id/search_edit_text"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_gravity="start|center_vertical"
- android:layout_weight="1"
- android:background="@android:color/transparent"
- android:ellipsize="end"
- android:ems="10"
- android:gravity="start|center_vertical"
- android:imeOptions="actionSearch|flagNoExtractUi"
- android:inputType="textNoSuggestions"
- android:maxLines="1"
- android:paddingEnd="@dimen/kau_search_key_line_16"
- android:paddingStart="@dimen/kau_search_key_line_8"
- android:privateImeOptions="nm"
- android:textSize="@dimen/kau_search_text_medium"
- android:windowSoftInputMode="stateAlwaysHidden" />
-
- <ProgressBar
- android:id="@+id/search_progress"
- style="?android:attr/indeterminateProgressStyle"
- android:layout_width="@dimen/kau_search_progress"
- android:layout_height="match_parent"
- android:visibility="gone" />
-
- <ImageView
- android:id="@+id/search_extra"
- android:layout_width="48dp"
- android:layout_height="match_parent"
- android:background="?android:attr/selectableItemBackgroundBorderless"
- android:clickable="true"
- android:contentDescription="@string/kau_search"
- android:focusable="true"
- android:scaleType="center"
- android:visibility="gone" />
-
- <ImageView
- android:id="@+id/search_clear"
- android:layout_width="48dp"
- android:layout_height="match_parent"
- android:background="?android:attr/selectableItemBackgroundBorderless"
- android:clickable="true"
- android:contentDescription="@string/kau_search"
- android:focusable="true"
- android:scaleType="center" />
-
- </LinearLayout>
-
- <View
- android:id="@+id/search_divider"
- android:layout_width="match_parent"
- android:layout_height="@dimen/kau_search_divider"
- android:background="?android:attr/listDivider" />
-
- <android.support.v7.widget.RecyclerView
- android:id="@+id/search_recycler"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
-
- android:overScrollMode="never"
- android:visibility="gone" />
-
- </LinearLayout>
-
- </ca.allanwang.kau.views.BoundedCardView>
-
-</merge> \ No newline at end of file