aboutsummaryrefslogtreecommitdiff
path: root/sample/src
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-24 20:00:35 -0700
committerAllan Wang <me@allanwang.ca>2017-06-24 20:00:35 -0700
commit35b26d771199c1dbf0d67377627c9d8b27da388c (patch)
tree7b8aa38ef8c0cc43cd5484626c6540bff7798940 /sample/src
parent6ad176dde0a84a0eb96dea2f9c7eb34394045526 (diff)
downloadkau-35b26d771199c1dbf0d67377627c9d8b27da388c.tar.gz
kau-35b26d771199c1dbf0d67377627c9d8b27da388c.tar.bz2
kau-35b26d771199c1dbf0d67377627c9d8b27da388c.zip
Create tintable ripples
Diffstat (limited to 'sample/src')
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt6
1 files changed, 6 insertions, 0 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 7680588..c836227 100644
--- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
@@ -1,5 +1,6 @@
package ca.allanwang.kau.sample
+import android.graphics.Color
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
@@ -136,6 +137,11 @@ class MainActivity : KPrefActivity() {
}
noResultsFound = R.string.kau_no_results_found
shouldClearOnClose = false
+ onItemClick = {
+ position, key, content, searchView ->
+ toast(content)
+ searchView.revealClose()
+ }
}
return true
}