diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-08 20:25:23 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-07-08 20:25:23 -0700 |
commit | 81996038462de1be86643e95d262933c4b96c551 (patch) | |
tree | 39423b28217251e7051f86e9e4f80c47bcba20b2 /core/src/main/res | |
parent | 880d433e475e5be4e5d91afac145b490f9a959b7 (diff) | |
download | kau-81996038462de1be86643e95d262933c4b96c551.tar.gz kau-81996038462de1be86643e95d262933c4b96c551.tar.bz2 kau-81996038462de1be86643e95d262933c4b96c551.zip |
Move components to separate modules
Diffstat (limited to 'core/src/main/res')
27 files changed, 1 insertions, 975 deletions
diff --git a/core/src/main/res/layout/kau_about_section_libraries.xml b/core/src/main/res/layout/kau_about_section_libraries.xml deleted file mode 100644 index 45c271b..0000000 --- a/core/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/core/src/main/res/layout/kau_about_section_main.xml b/core/src/main/res/layout/kau_about_section_main.xml deleted file mode 100644 index 40d8dfb..0000000 --- a/core/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/core/src/main/res/layout/kau_activity_about.xml b/core/src/main/res/layout/kau_activity_about.xml deleted file mode 100644 index 604b2a1..0000000 --- a/core/src/main/res/layout/kau_activity_about.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<ca.allanwang.kau.widgets.ElasticDragDismissFrameLayout 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/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:currentPageIndicatorColor="@color/kau_about_page_indicator_dark_selected" - app:pageIndicatorColor="@color/kau_about_page_indicator_dark" /> - -</ca.allanwang.kau.widgets.ElasticDragDismissFrameLayout> diff --git a/core/src/main/res/layout/kau_activity_kpref.xml b/core/src/main/res/layout/kau_activity_kpref.xml deleted file mode 100644 index 05cacb5..0000000 --- a/core/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/core/src/main/res/layout/kau_iitem_card.xml b/core/src/main/res/layout/kau_iitem_card.xml deleted file mode 100644 index 621da2e..0000000 --- a/core/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/core/src/main/res/layout/kau_iitem_cutout.xml b/core/src/main/res/layout/kau_iitem_cutout.xml deleted file mode 100644 index a4b17ac..0000000 --- a/core/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/core/src/main/res/layout/kau_iitem_header.xml b/core/src/main/res/layout/kau_iitem_header.xml deleted file mode 100644 index fa5a595..0000000 --- a/core/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/core/src/main/res/layout/kau_iitem_library.xml b/core/src/main/res/layout/kau_iitem_library.xml deleted file mode 100644 index 1c3de5c..0000000 --- a/core/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/core/src/main/res/layout/kau_preference.xml b/core/src/main/res/layout/kau_preference.xml deleted file mode 100644 index dfd9682..0000000 --- a/core/src/main/res/layout/kau_preference.xml +++ /dev/null @@ -1,108 +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="@dimen/kau_padding_normal" - 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" - tools:layout_editor_absoluteX="-175dp" /> - - <TextView - android:id="@id/kau_pref_desc" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:ellipsize="end" - android:maxLines="10" - android:textAppearance="?android:attr/textAppearanceListItemSecondary" - android:textColor="?android:attr/textColorSecondary" - app:layout_constraintBottom_toTopOf="@+id/kau_pref_lower_frame" - 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" /> - - <LinearLayout - android:id="@id/kau_pref_lower_frame" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_marginBottom="@dimen/kau_padding_normal" - android:orientation="vertical" - 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_desc" - 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,kau_pref_lower_frame" - 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="@dimen/kau_padding_normal" - 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/core/src/main/res/layout/kau_preference_checkbox.xml b/core/src/main/res/layout/kau_preference_checkbox.xml deleted file mode 100644 index 016394f..0000000 --- a/core/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/core/src/main/res/layout/kau_preference_color_preview.xml b/core/src/main/res/layout/kau_preference_color_preview.xml deleted file mode 100644 index 18ca35a..0000000 --- a/core/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/core/src/main/res/layout/kau_preference_header.xml b/core/src/main/res/layout/kau_preference_header.xml deleted file mode 100644 index 5deece3..0000000 --- a/core/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/core/src/main/res/layout/kau_preference_seekbar.xml b/core/src/main/res/layout/kau_preference_seekbar.xml deleted file mode 100644 index 8da4d5d..0000000 --- a/core/src/main/res/layout/kau_preference_seekbar.xml +++ /dev/null @@ -1,8 +0,0 @@ -<SeekBar xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@id/kau_pref_lower_content" - android:layout_width="match_parent" - android:paddingTop="@dimen/kau_padding_normal" - android:layout_height="wrap_content" - android:focusable="false" - android:clickable="false" - android:background="@null" />
\ No newline at end of file diff --git a/core/src/main/res/layout/kau_preference_seekbar_text.xml b/core/src/main/res/layout/kau_preference_seekbar_text.xml deleted file mode 100644 index 6ba2543..0000000 --- a/core/src/main/res/layout/kau_preference_seekbar_text.xml +++ /dev/null @@ -1,12 +0,0 @@ -<!--TextView that aligns to the bottom--> - -<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:layout_gravity="bottom" - android:background="@null" - android:clickable="false" - android:focusable="false" - android:gravity="bottom|end" - android:paddingBottom="@dimen/kau_padding_normal" />
\ No newline at end of file diff --git a/core/src/main/res/layout/kau_preference_text.xml b/core/src/main/res/layout/kau_preference_text.xml deleted file mode 100644 index a4d901e..0000000 --- a/core/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/core/src/main/res/layout/kau_recycler_detached_background.xml b/core/src/main/res/layout/kau_recycler_detached_background.xml deleted file mode 100644 index 7295d66..0000000 --- a/core/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/core/src/main/res/layout/kau_recycler_textslider.xml b/core/src/main/res/layout/kau_recycler_textslider.xml deleted file mode 100644 index 1402cfb..0000000 --- a/core/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/core/src/main/res/layout/kau_search_iitem.xml b/core/src/main/res/layout/kau_search_iitem.xml deleted file mode 100644 index efd7260..0000000 --- a/core/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/core/src/main/res/layout/kau_search_view.xml b/core/src/main/res/layout/kau_search_view.xml deleted file mode 100644 index ff9fd74..0000000 --- a/core/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 diff --git a/core/src/main/res/transition/kau_about_return_downward.xml b/core/src/main/res/transition/kau_about_return_downward.xml deleted file mode 100644 index b040b1b..0000000 --- a/core/src/main/res/transition/kau_about_return_downward.xml +++ /dev/null @@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright 2015 Google Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<transitionSet - xmlns:android="http://schemas.android.com/apk/res/android" - android:transitionOrdering="together" - android:interpolator="@android:interpolator/fast_out_linear_in"> - - <slide - android:slideEdge="bottom" - android:duration="400"> - <targets> - <target android:excludeId="@android:id/navigationBarBackground" /> - <target android:excludeId="@android:id/statusBarBackground" /> - </targets> - </slide> - - <fade - android:startDelay="200" - android:duration="200"> - <targets> - <target android:targetId="@id/about_indicator" /> - <!--<target android:targetId="@id/libraries_intro" />--> - <!--<target android:targetId="@id/libs_list_background" />--> - </targets> - </fade> - - <fade android:duration="400"> - <targets> - <target android:targetId="@android:id/navigationBarBackground" /> - <target android:targetId="@android:id/statusBarBackground" /> - </targets> - </fade> - -</transitionSet> diff --git a/core/src/main/res/transition/kau_about_return_upwards.xml b/core/src/main/res/transition/kau_about_return_upwards.xml deleted file mode 100644 index 64b3f5e..0000000 --- a/core/src/main/res/transition/kau_about_return_upwards.xml +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright 2015 Google Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<transitionSet - xmlns:android="http://schemas.android.com/apk/res/android" - android:transitionOrdering="together" - android:interpolator="@android:interpolator/fast_out_linear_in"> - - <slide - android:slideEdge="top" - android:duration="400"> - <targets> - <target android:excludeId="@android:id/navigationBarBackground" /> - <target android:excludeId="@android:id/statusBarBackground" /> - </targets> - </slide> - - <fade - android:startDelay="200" - android:duration="200"> - <targets> - <target android:targetId="@id/about_indicator" /> - <!--<target android:targetId="@id/libraries_intro" />--> - <!--<target android:targetId="@id/libs_list_background" />--> - - </targets> - </fade> - - <fade android:duration="400"> - <targets> - <target android:targetId="@android:id/navigationBarBackground" /> - <target android:targetId="@android:id/statusBarBackground" /> - </targets> - </fade> - -</transitionSet> diff --git a/core/src/main/res/values/attr.xml b/core/src/main/res/values/attr.xml deleted file mode 100644 index 49be8d9..0000000 --- a/core/src/main/res/values/attr.xml +++ /dev/null @@ -1,41 +0,0 @@ -<?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 deleted file mode 100644 index 6d51597..0000000 --- a/core/src/main/res/values/colors.xml +++ /dev/null @@ -1,6 +0,0 @@ -<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 index 5bf6da4..a459443 100644 --- a/core/src/main/res/values/dimens.xml +++ b/core/src/main/res/values/dimens.xml @@ -10,7 +10,6 @@ <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 --> diff --git a/core/src/main/res/values/dimens_search.xml b/core/src/main/res/values/dimens_search.xml deleted file mode 100644 index acf79cb..0000000 --- a/core/src/main/res/values/dimens_search.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?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/strings_about.xml b/core/src/main/res/values/strings_about.xml index e659fc3..4c3c38d 100644 --- a/core/src/main/res/values/strings_about.xml +++ b/core/src/main/res/values/strings_about.xml @@ -1,5 +1,5 @@ <resources xmlns:tools="http://schemas.android.com/tools"> - <string name="library_kau_libraryVersion" tools:ignore="ResourceName">1.4</string> + <string name="library_kau_libraryVersion" tools:ignore="ResourceName">1.5</string> <string name="define_kau" tools:ignore="ResourceName" /> <!-- Author section --> diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml deleted file mode 100644 index 71d88a2..0000000 --- a/core/src/main/res/values/styles.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?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.NoAnimation"> - <item name="android:windowAnimationStyle">@null</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 |