diff options
author | Allan Wang <me@allanwang.ca> | 2017-08-05 14:49:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-05 14:49:47 -0700 |
commit | c707d42b311f96cbabc1971f98598c8b8922ba16 (patch) | |
tree | 3c592c2a8bdd2fb759e3632adf038b5d7cecfabb /about/src | |
parent | bafc1996d803862d30a2c7d0c402d30c79c4f647 (diff) | |
download | kau-c707d42b311f96cbabc1971f98598c8b8922ba16.tar.gz kau-c707d42b311f96cbabc1971f98598c8b8922ba16.tar.bz2 kau-c707d42b311f96cbabc1971f98598c8b8922ba16.zip |
Swipe (#24)
* Test emulator
* Update readme
* Update fastadapter and about listing
* Make faq parser asynchronous
* Modularize about panels
* Add basis for faq
* Test and finalize the faq panel
* Update readme
* Update changelog
* Remove emulator for now
* Update sample
* Change back to manual versioning to avoid suggestion errors
* Add awesome-kt banner
* Fix faq background color
* Fix merge conflicts 2
* Add waffle badge
* Update readme
* Fix lint
* Create FileUtils and NotificationUtils
* Remove frost hardcode
* Fix simple date
* Update swipe to use weak references
* Initializing test dependencies
* Update to gradle 4.1
* Fix lint warnings
* Drop back down and fix errors
* Finalize swipe with example
* Finalize weak reference and ordering
* Update test code
* Make loggers inline
Diffstat (limited to 'about/src')
-rw-r--r-- | about/src/main/kotlin/ca/allanwang/kau/about/FaqIItem.kt | 9 | ||||
-rw-r--r-- | about/src/main/res/layout/kau_iitem_library.xml | 3 | ||||
-rw-r--r-- | about/src/main/res/values/strings_about.xml | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/about/src/main/kotlin/ca/allanwang/kau/about/FaqIItem.kt b/about/src/main/kotlin/ca/allanwang/kau/about/FaqIItem.kt index 5e00447..629aa52 100644 --- a/about/src/main/kotlin/ca/allanwang/kau/about/FaqIItem.kt +++ b/about/src/main/kotlin/ca/allanwang/kau/about/FaqIItem.kt @@ -8,10 +8,7 @@ import android.widget.TextView import ca.allanwang.kau.adapters.ThemableIItem import ca.allanwang.kau.adapters.ThemableIItemDelegate import ca.allanwang.kau.iitems.KauIItem -import ca.allanwang.kau.utils.bindView -import ca.allanwang.kau.utils.dpToPx -import ca.allanwang.kau.utils.parentViewGroup -import ca.allanwang.kau.utils.setPaddingLeft +import ca.allanwang.kau.utils.* import ca.allanwang.kau.xml.FaqItem import com.mikepenz.fastadapter.FastAdapter import com.mikepenz.fastadapter.IItem @@ -57,7 +54,9 @@ class FaqIItem(val content: FaqItem) : KauIItem<LibraryIItem, FaqIItem.ViewHolde answer.post { answer.setPaddingLeft(16.dpToPx + number.width) } bindTextColor(number, question) bindTextColorSecondary(answer) - bindDividerColor(answer) + val bg2 = backgroundColor?.colorToForeground(0.1f) + if (bg2 != null) + answer.setBackgroundColor(bg2) bindBackgroundRipple(questionContainer) } } diff --git a/about/src/main/res/layout/kau_iitem_library.xml b/about/src/main/res/layout/kau_iitem_library.xml index 3ad4fb4..ed1cceb 100644 --- a/about/src/main/res/layout/kau_iitem_library.xml +++ b/about/src/main/res/layout/kau_iitem_library.xml @@ -6,7 +6,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?android:selectableItemBackground" - android:clickable="true"> + android:clickable="true" + android:focusable="true"> <android.support.constraint.ConstraintLayout android:layout_width="match_parent" diff --git a/about/src/main/res/values/strings_about.xml b/about/src/main/res/values/strings_about.xml index 8c3dc59..592f9f4 100644 --- a/about/src/main/res/values/strings_about.xml +++ b/about/src/main/res/values/strings_about.xml @@ -1,8 +1,8 @@ <resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="ResourceName"> - <string name="library_kau_libraryVersion">3.2.3</string> <string name="define_kau"/> <string name="library_kau_author">Allan Wang</string> <string name="library_kau_authorWebsite">https://www.allanwang.ca/dev/</string> + <string name="library_kau_libraryVersion">@string/kau_version_code</string> <string name="library_kau_libraryName">KAU</string> <string name="library_kau_libraryDescription"> <![CDATA[ |