diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-28 17:08:20 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-28 17:08:20 -0700 |
commit | d52c787508bf5ba0023946228468731a82a1132d (patch) | |
tree | a5048581dc74c9f0a87d43d83eb7e7d2c69ff309 /library/src/main/res | |
parent | 0d7bf678f84f60a11e7c7cdbaa31bfe6ef21166c (diff) | |
download | kau-d52c787508bf5ba0023946228468731a82a1132d.tar.gz kau-d52c787508bf5ba0023946228468731a82a1132d.tar.bz2 kau-d52c787508bf5ba0023946228468731a82a1132d.zip |
Beginning of overlaying about activity
Diffstat (limited to 'library/src/main/res')
18 files changed, 354 insertions, 153 deletions
diff --git a/library/src/main/res/layout/kau_about_item_library.xml b/library/src/main/res/layout/kau_about_item_library.xml index 0ae4d3c..0129512 100644 --- a/library/src/main/res/layout/kau_about_item_library.xml +++ b/library/src/main/res/layout/kau_about_item_library.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" - android:id="@+id/rippleForegroundListenerView" + android:id="@+id/lib_item_card" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="8dp" - android:layout_marginTop="8dp" + android:paddingBottom="8dp" + android:paddingTop="8dp" android:clickable="true" android:foreground="?selectableItemBackground" android:layoutDirection="ltr"> @@ -25,7 +25,7 @@ android:paddingRight="8dp"> <TextView - android:id="@+id/libraryName" + android:id="@+id/lib_item_name" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="5" @@ -37,7 +37,7 @@ tools:text="Library name" /> <TextView - android:id="@+id/libraryCreator" + android:id="@+id/lib_item_author" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="2dp" @@ -46,17 +46,17 @@ android:maxLines="2" android:textSize="@dimen/textSizeSmall_openSource" android:textStyle="normal" - tools:text="Creator" /> + tools:text="Author" /> </LinearLayout> <View - android:id="@+id/libraryDescriptionDivider" + android:id="@+id/lib_item_top_divider" android:layout_width="match_parent" android:layout_height="1px" android:layout_marginTop="4dp" /> <TextView - android:id="@+id/libraryDescription" + android:id="@+id/lib_item_description" android:layout_width="match_parent" android:layout_height="wrap_content" android:maxLines="20" @@ -66,13 +66,13 @@ tools:text="Description"/> <View - android:id="@+id/libraryBottomDivider" + android:id="@+id/lib_item_bottom_divider" android:layout_width="match_parent" android:layout_height="1px" android:layout_marginTop="4dp" /> <LinearLayout - android:id="@+id/libraryBottomContainer" + android:id="@+id/lib_item_bottom_container" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" @@ -82,7 +82,7 @@ android:paddingTop="4dp"> <TextView - android:id="@+id/libraryVersion" + android:id="@+id/lib_item_version" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" @@ -93,7 +93,7 @@ tools:text="Version" /> <TextView - android:id="@+id/libraryLicense" + android:id="@+id/lib_item_license" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" diff --git a/library/src/main/res/layout/kau_about_item_main.xml b/library/src/main/res/layout/kau_about_item_main.xml deleted file mode 100644 index 96ba110..0000000 --- a/library/src/main/res/layout/kau_about_item_main.xml +++ /dev/null @@ -1,106 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:tools="http://schemas.android.com/tools" - android:id="@+id/container" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginBottom="8dp" - android:layout_marginTop="8dp" - android:clickable="true" - android:background="?selectableItemBackground"> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical" - android:padding="6dp"> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:orientation="horizontal" - android:paddingLeft="8dp" - android:paddingRight="8dp"> - - <TextView - android:id="@+id/title" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="5" - android:ellipsize="end" - android:gravity="start" - android:maxLines="1" - android:textSize="@dimen/textSizeLarge_openSource" - android:textStyle="normal" - tools:text="App name" /> - - <TextView - android:id="@+id/creator" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_marginTop="2dp" - android:layout_weight="2" - android:gravity="end" - android:maxLines="2" - android:textSize="@dimen/textSizeSmall_openSource" - android:textStyle="normal" - tools:text="Creator" /> - </LinearLayout> - - <View - android:id="@+id/top_divider" - android:layout_width="match_parent" - android:layout_height="1px" - android:layout_marginTop="4dp" /> - - <TextView - android:id="@+id/description" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:maxLines="20" - android:padding="8dp" - android:textSize="@dimen/textSizeSmall_openSource" - android:textStyle="normal" - tools:text="Description"/> - - <View - android:id="@+id/bottom_divider" - android:layout_width="match_parent" - android:layout_height="1px" - android:layout_marginTop="4dp" /> - - <LinearLayout - android:id="@+id/bottom_container" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:orientation="horizontal" - android:paddingLeft="8dp" - android:paddingRight="8dp" - android:paddingTop="4dp"> - - <TextView - android:id="@+id/version" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="1" - android:gravity="start" - android:maxLines="1" - android:textSize="@dimen/textSizeSmall_openSource" - android:textStyle="normal" - tools:text="Version" /> - - <TextView - android:id="@+id/license" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="1" - android:gravity="end" - android:maxLines="1" - android:textSize="@dimen/textSizeSmall_openSource" - android:textStyle="normal" - tools:text="License" /> - </LinearLayout> - </LinearLayout> -</android.support.v7.widget.CardView>
\ No newline at end of file diff --git a/library/src/main/res/layout/kau_about_section_libraries.xml b/library/src/main/res/layout/kau_about_section_libraries.xml new file mode 100644 index 0000000..45c271b --- /dev/null +++ b/library/src/main/res/layout/kau_about_section_libraries.xml @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..32b3f19 --- /dev/null +++ b/library/src/main/res/layout/kau_about_section_main.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<ScrollView 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" + android:nestedScrollingEnabled="true" + 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.KauCutoutTextView + 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:kau_foregroundColor="?android:colorAccent" + app:kau_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> + +</ScrollView> diff --git a/library/src/main/res/layout/kau_activity_about.xml b/library/src/main/res/layout/kau_activity_about.xml index a42cbe8..a2db0e9 100644 --- a/library/src/main/res/layout/kau_activity_about.xml +++ b/library/src/main/res/layout/kau_activity_about.xml @@ -1,34 +1,27 @@ <?xml version="1.0" encoding="utf-8"?> -<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" +<ca.allanwang.kau.widgets.KauElasticDragDismissFrameLayout + 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/kau_container" + android:id="@+id/about_draggable_frame" android:layout_width="match_parent" - android:layout_height="match_parent"> + android:layout_height="match_parent" + app:kau_dragDismissDistance="@dimen/kau_drag_dismiss_distance" + app:kau_dragDismissScale="0.95" + tools:context=".about.AboutActivityBase"> - <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"> + <android.support.v4.view.ViewPager + android:id="@+id/about_pager" + android:layout_width="match_parent" + android:layout_height="match_parent" /> - <ca.allanwang.kau.views.KauTextSlider - android:id="@+id/kau_toolbar_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center" - app:kau_animation_type="slide_vertical" /> + <ca.allanwang.kau.widgets.KauInkPageIndicator + 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:kau_pageIndicatorColor="@color/kau_about_page_indicator_dark" + app:kau_currentPageIndicatorColor="@color/kau_about_page_indicator_dark_selected" /> - </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> +</ca.allanwang.kau.widgets.KauElasticDragDismissFrameLayout> diff --git a/library/src/main/res/layout/kau_activity_kpref.xml b/library/src/main/res/layout/kau_activity_kpref.xml index 2281c45..b3c0f78 100644 --- a/library/src/main/res/layout/kau_activity_kpref.xml +++ b/library/src/main/res/layout/kau_activity_kpref.xml @@ -24,7 +24,7 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> - <ca.allanwang.kau.views.KauTextSlider + <ca.allanwang.kau.widgets.KauTextSlider android:id="@+id/kau_toolbar_text" android:layout_width="wrap_content" android:layout_height="wrap_content" diff --git a/library/src/main/res/layout/kau_recycler_textslider.xml b/library/src/main/res/layout/kau_recycler_textslider.xml new file mode 100644 index 0000000..f051902 --- /dev/null +++ b/library/src/main/res/layout/kau_recycler_textslider.xml @@ -0,0 +1,34 @@ +<?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.KauTextSlider + android:id="@+id/kau_toolbar_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + app:kau_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_view.xml b/library/src/main/res/layout/kau_search_view.xml index 4083f44..cd1c4bd 100644 --- a/library/src/main/res/layout/kau_search_view.xml +++ b/library/src/main/res/layout/kau_search_view.xml @@ -8,7 +8,7 @@ android:id="@+id/search_shadow" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@color/kau_search_full_shadow" + android:background="@color/kau_shadow_overlay" android:visibility="gone" /> <ca.allanwang.kau.views.KauBoundedCardView diff --git a/library/src/main/res/transition/kau_about_enter.xml b/library/src/main/res/transition/kau_about_enter.xml new file mode 100644 index 0000000..0089b84 --- /dev/null +++ b/library/src/main/res/transition/kau_about_enter.xml @@ -0,0 +1,38 @@ +<?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:duration="400" + android:interpolator="@android:interpolator/linear_out_slow_in"> + + <slide android:slideEdge="top"> + <targets> + <target android:excludeId="@android:id/navigationBarBackground" /> + <target android:excludeId="@android:id/statusBarBackground" /> + </targets> + </slide> + + <fade android:duration="@android:integer/config_mediumAnimTime"> + <targets> + <target android:targetId="@android:id/navigationBarBackground" /> + <target android:targetId="@android:id/statusBarBackground" /> + </targets> + </fade> + +</transitionSet> diff --git a/library/src/main/res/transition/kau_about_return_downward.xml b/library/src/main/res/transition/kau_about_return_downward.xml new file mode 100644 index 0000000..b040b1b --- /dev/null +++ b/library/src/main/res/transition/kau_about_return_downward.xml @@ -0,0 +1,49 @@ +<?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/library/src/main/res/transition/kau_about_return_upwards.xml b/library/src/main/res/transition/kau_about_return_upwards.xml new file mode 100644 index 0000000..64b3f5e --- /dev/null +++ b/library/src/main/res/transition/kau_about_return_upwards.xml @@ -0,0 +1,50 @@ +<?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/library/src/main/res/values/attr.xml b/library/src/main/res/values/attr.xml index 14ae027..6a32807 100644 --- a/library/src/main/res/values/attr.xml +++ b/library/src/main/res/values/attr.xml @@ -14,4 +14,27 @@ </attr> </declare-styleable> + <declare-styleable name="KauInkPageIndicator"> + <attr name="kau_dotDiameter" format="dimension" /> + <attr name="kau_dotGap" format="dimension" /> + <attr name="kau_animationDuration" format="integer" /> + <attr name="kau_pageIndicatorColor" format="color" /> + <attr name="kau_currentPageIndicatorColor" format="color" /> + </declare-styleable> + + <declare-styleable name="KauElasticDragDismissFrameLayout"> + <attr name="kau_dragDismissDistance" format="dimension" /> + <attr name="kau_dragDismissFraction" format="float" /> + <attr name="kau_dragDismissScale" format="float" /> + <attr name="kau_dragElasticity" format="float" /> + </declare-styleable> + + <declare-styleable name="KauCutoutTextView"> + <attr name="kau_foregroundColor" format="color" /> + <attr name="android:text" /> + <attr name="android:minHeight" /> + <attr name="kau_heightPercentageToScreen" format="float" /> + <attr name="kau_font" format="string" /> + </declare-styleable> + </resources>
\ No newline at end of file diff --git a/library/src/main/res/values/colors.xml b/library/src/main/res/values/colors.xml index dc95351..6d51597 100644 --- a/library/src/main/res/values/colors.xml +++ b/library/src/main/res/values/colors.xml @@ -1,3 +1,6 @@ <resources> - <color name="kau_search_full_shadow">#80000000</color> + <color name="kau_shadow_overlay">#80000000</color> + + <color name="kau_about_page_indicator_dark">#80ffffff</color> + <color name="kau_about_page_indicator_dark_selected">#fff</color> </resources> diff --git a/library/src/main/res/values/dimens.xml b/library/src/main/res/values/dimens.xml index cbb378a..d45643e 100644 --- a/library/src/main/res/values/dimens.xml +++ b/library/src/main/res/values/dimens.xml @@ -13,5 +13,20 @@ <dimen name="kau_color_circle_size">56dp</dimen> <dimen name="kau_status_bar_height">24dp</dimen> + <dimen name="kau_drag_dismiss_distance">112dp</dimen> <!-- 2 * ?android:actionBarSize --> + + <dimen name="kau_spacing_normal">8dp</dimen> + <dimen name="kau_spacing_micro">4dp</dimen> + <dimen name="kau_spacing_large">32dp</dimen> + <dimen name="kau_spacing_xlarge">48dp</dimen> + <dimen name="kau_spacing_huge">64dp</dimen> + <dimen name="kau_padding_normal">16dp</dimen> + <dimen name="kau_padding_large">24dp</dimen> + <dimen name="kau_fab_size">56dp</dimen> + <dimen name="kau_fab_radius">28dp</dimen> + <dimen name="kau_display_4_text_size">112sp</dimen> + + <dimen name="kau_about_header_height">224dp</dimen> + </resources> diff --git a/library/src/main/res/values/strings.xml b/library/src/main/res/values/strings.xml index cfede89..1f76924 100644 --- a/library/src/main/res/values/strings.xml +++ b/library/src/main/res/values/strings.xml @@ -10,6 +10,5 @@ <string name="kau_kpref_title_placeholder">Title Placeholder</string> <string name="kau_pref_icon">Pref Icon</string> - <string name="kau_send_via">Send via</string> - + <string name="kau_about_libraries_intro">This app would not be possible without the following great libraries.</string> </resources> diff --git a/library/src/main/res/values/strings_about.xml b/library/src/main/res/values/strings_about.xml index be891d2..489e5c2 100644 --- a/library/src/main/res/values/strings_about.xml +++ b/library/src/main/res/values/strings_about.xml @@ -7,8 +7,15 @@ <string name="library_kau_authorWebsite" tools:ignore="ResourceName">https://www.allanwang.ca/dev/</string> <!-- Library section --> <string name="library_kau_libraryName" tools:ignore="ResourceName">KAU</string> - <string name="library_kau_libraryDescription" tools:ignore="ResourceName">An extensive collection of Kotlin Android Utilities.</string> - <string name="library_kau_libraryWebsite" tools:ignore="ResourceName">https://github.com/AllanWang/KAU</string> + <string name="library_kau_libraryDescription" tools:ignore="ResourceName"> + <![CDATA[ + An extensive collection of Kotlin Android Utilities. + <br/><br/> + KAU aims to make many common functions executable in one line. It adds numerous extensions to match Kotlin\'s DSL, + and supports completely customizable view groups that are used in almost any app project. + ]]> + </string> + <string name="library_kau_libraryWebsite" tools:ignore="ResourceName">https://allanwang.github.io/KAU/</string> <string name="library_kau_libraryVersion" tools:ignore="ResourceName">1.3</string> <!-- OpenSource section --> <string name="library_kau_isOpenSource" tools:ignore="ResourceName">true</string> diff --git a/library/src/main/res/values/strings_commons.xml b/library/src/main/res/values/strings_commons.xml index 89d697e..0ca785d 100644 --- a/library/src/main/res/values/strings_commons.xml +++ b/library/src/main/res/values/strings_commons.xml @@ -52,5 +52,6 @@ Most resources are verbatim and x represents a formatted item <string name="kau_search">Search</string> <string name="kau_no_results_found">No Results Found</string> <string name="kau_about_app">About App</string> + <string name="kau_send_via">Send via</string> <string name="kau_about_x">About %s</string> </resources> diff --git a/library/src/main/res/values/styles.xml b/library/src/main/res/values/styles.xml new file mode 100644 index 0000000..6f5e3c1 --- /dev/null +++ b/library/src/main/res/values/styles.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <style name="Kau" parent="Theme.AppCompat.NoActionBar" /> + + <style name="Kau.Translucent"> + <item name="android:windowBackground">@color/kau_shadow_overlay</item> + <item name="android:colorBackgroundCacheHint">@null</item> + <item name="android:windowContentOverlay">@null</item> + <item name="android:windowIsFloating">false</item> + <item name="android:windowIsTranslucent">true</item> + <item name="android:windowNoTitle">true</item> + <item name="android:windowDrawsSystemBarBackgrounds">true</item> + </style> + + <style name="Kau.Translucent.About"> + <item name="android:windowEnterTransition">@transition/kau_about_enter</item> + <item name="android:windowReturnTransition">@transition/kau_about_return_upwards</item> + </style> + +</resources>
\ No newline at end of file |