diff options
Diffstat (limited to 'library/src/main/res')
-rw-r--r-- | library/src/main/res/anim/kau_slide_in_bottom.xml | 7 | ||||
-rw-r--r-- | library/src/main/res/anim/kau_slide_in_top.xml | 7 | ||||
-rw-r--r-- | library/src/main/res/anim/kau_slide_out_bottom.xml | 7 | ||||
-rw-r--r-- | library/src/main/res/anim/kau_slide_out_top.xml | 7 | ||||
-rw-r--r-- | library/src/main/res/layout/kau_activity_about.xml | 34 | ||||
-rw-r--r-- | library/src/main/res/layout/kau_activity_kpref.xml | 2 | ||||
-rw-r--r-- | library/src/main/res/values/strings_about.xml | 19 | ||||
-rw-r--r-- | library/src/main/res/values/strings_commons.xml | 2 |
8 files changed, 84 insertions, 1 deletions
diff --git a/library/src/main/res/anim/kau_slide_in_bottom.xml b/library/src/main/res/anim/kau_slide_in_bottom.xml new file mode 100644 index 0000000..a07cba4 --- /dev/null +++ b/library/src/main/res/anim/kau_slide_in_bottom.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate + android:duration="@android:integer/config_shortAnimTime" + android:fromYDelta="100%p" + android:toYDelta="0" /> +</set>
\ No newline at end of file diff --git a/library/src/main/res/anim/kau_slide_in_top.xml b/library/src/main/res/anim/kau_slide_in_top.xml new file mode 100644 index 0000000..8caee9b --- /dev/null +++ b/library/src/main/res/anim/kau_slide_in_top.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate + android:duration="@android:integer/config_shortAnimTime" + android:fromYDelta="-100%p" + android:toYDelta="0" /> +</set>
\ No newline at end of file diff --git a/library/src/main/res/anim/kau_slide_out_bottom.xml b/library/src/main/res/anim/kau_slide_out_bottom.xml new file mode 100644 index 0000000..44e7e21 --- /dev/null +++ b/library/src/main/res/anim/kau_slide_out_bottom.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate + android:duration="@android:integer/config_shortAnimTime" + android:fromYDelta="0" + android:toYDelta="100%p" /> +</set>
\ No newline at end of file diff --git a/library/src/main/res/anim/kau_slide_out_top.xml b/library/src/main/res/anim/kau_slide_out_top.xml new file mode 100644 index 0000000..9f8e14c --- /dev/null +++ b/library/src/main/res/anim/kau_slide_out_top.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate + android:duration="@android:integer/config_shortAnimTime" + android:fromYDelta="0" + android:toYDelta="-100%p" /> +</set>
\ No newline at end of file diff --git a/library/src/main/res/layout/kau_activity_about.xml b/library/src/main/res/layout/kau_activity_about.xml new file mode 100644 index 0000000..1be7c17 --- /dev/null +++ b/library/src/main/res/layout/kau_activity_about.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.views.TextSlider + android:id="@+id/kau_toolbar_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:textAppearance="@style/TextAppearance.AppCompat.Title" /> + + </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_activity_kpref.xml b/library/src/main/res/layout/kau_activity_kpref.xml index 856f168..e4e7b97 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.TextSwitcherThemed + <ca.allanwang.kau.views.TextSlider android:id="@+id/kau_toolbar_text" android:layout_width="wrap_content" android:layout_height="wrap_content" diff --git a/library/src/main/res/values/strings_about.xml b/library/src/main/res/values/strings_about.xml new file mode 100644 index 0000000..2c3f9a1 --- /dev/null +++ b/library/src/main/res/values/strings_about.xml @@ -0,0 +1,19 @@ +<resources xmlns:tools="http://schemas.android.com/tools"> + <string name="define_int_kau" tools:ignore="ResourceName" /> + <!-- Author section --> + <string name="library_kau_author" tools:ignore="ResourceName">Allan Wang</string> + <string name="library_kau_authorWebsite" tools:ignore="ResourceName">https://www.allanwang.ca/dev/</string> + <!-- Library section --> + <string name="library_kau_libraryName" tools:ignore="ResourceName">KAU</string> + <string name="library_kau_libraryDescription" tools:ignore="ResourceName">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_libraryVersion" tools:ignore="ResourceName">1.3</string> + <!-- OpenSource section --> + <string name="library_kau_isOpenSource" tools:ignore="ResourceName">true</string> + <string name="library_kau_repositoryLink" tools:ignore="ResourceName">https://github.com/AllanWang/KAU</string> + <!-- ClassPath for autoDetect section --> + <string name="library_kau_classPath" tools:ignore="ResourceName">ca.allanwang.kau</string> + <!-- License section --> + <string name="library_kau_licenseId" tools:ignore="ResourceName">apache_2_0</string> + <!-- Custom variables section --> +</resources>
\ No newline at end of file diff --git a/library/src/main/res/values/strings_commons.xml b/library/src/main/res/values/strings_commons.xml index c678ba1..89d697e 100644 --- a/library/src/main/res/values/strings_commons.xml +++ b/library/src/main/res/values/strings_commons.xml @@ -51,4 +51,6 @@ Most resources are verbatim and x represents a formatted item <string name="kau_yes">Yes</string> <string name="kau_search">Search</string> <string name="kau_no_results_found">No Results Found</string> + <string name="kau_about_app">About App</string> + <string name="kau_about_x">About %s</string> </resources> |