aboutsummaryrefslogtreecommitdiff
path: root/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-18 20:16:23 -0700
committerGitHub <noreply@github.com>2017-07-18 20:16:23 -0700
commit8f2b5ac043f47cc44f43c3788d1377083fb339a2 (patch)
tree8f91042414de211cbfe67a76298300884f46a765 /sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
parent4eee8d59c21b2061b9f5fd0e805ca60ab84c3585 (diff)
downloadkau-8f2b5ac043f47cc44f43c3788d1377083fb339a2.tar.gz
kau-8f2b5ac043f47cc44f43c3788d1377083fb339a2.tar.bz2
kau-8f2b5ac043f47cc44f43c3788d1377083fb339a2.zip
Dev 2.1 (#8)
* Rewrite animation interfaces * Update changelog * Add scale factor for slide * Remove margins in iitems and replace with decorators * Remove mutable list * Switch cardiitem to use lambdas for click * status * Utils update and imagepicker fixes * Remove stringholder * Add fade in fade out * Increment about version * Rename fromedge to direction in javadocs * More logging * Add logging and docs * Make card icons visible * Update email builder and icon padding * Create elastic recycler activity * Fix card iitem * Add lint check and plurals * Inline all the things * Format and sort xml * Update dependencies and increment version
Diffstat (limited to 'sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt')
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt18
1 files changed, 11 insertions, 7 deletions
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
index 9a874cb..53ec745 100644
--- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
@@ -154,12 +154,16 @@ class MainActivity : KPrefActivity() {
descRes = R.string.sub_item_desc
}
- plainText(R.string.kau_lorem_ipsum) {
- onClick = {
- _, _, _ ->
- startActivity(AboutActivity::class.java, transition = true)
- false
- }
+ plainText(R.string.gallery_showcase) {
+ onClick = { _, _, _ -> startActivity(ImageActivity::class.java, transition = true); false }
+ }
+
+ plainText(R.string.adapter_showcase) {
+ onClick = { _, _, _ -> startActivity(AdapterActivity::class.java, transition = true); false }
+ }
+
+ plainText(R.string.kau_about_app) {
+ onClick = { _, _, _ -> startActivity(AboutActivity::class.java, transition = true); false }
}
}
@@ -215,7 +219,7 @@ class MainActivity : KPrefActivity() {
noResultsFound = R.string.kau_no_results_found
shouldClearOnClose = false
onItemClick = {
- position, key, content, searchView ->
+ _, _, content, searchView ->
toast(content)
searchView.revealClose()
}