aboutsummaryrefslogtreecommitdiff
path: root/sample/src/main/kotlin/ca/allanwang
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-08-21 14:39:00 -0700
committerAllan Wang <me@allanwang.ca>2017-08-30 12:24:19 -0400
commitbf136d76b81835a44a0d9038b2a87806247296e8 (patch)
tree77e52c71086411aa3fc653dbda6672a186ed5aec /sample/src/main/kotlin/ca/allanwang
parent17d18daaf591b4ab27e0a7df0bb1c3126e6488be (diff)
downloadkau-bf136d76b81835a44a0d9038b2a87806247296e8.tar.gz
kau-bf136d76b81835a44a0d9038b2a87806247296e8.tar.bz2
kau-bf136d76b81835a44a0d9038b2a87806247296e8.zip
Fix/kpref-inner-frame-size (#42)
* Fix kpref item barriers * Revert and add text constraint
Diffstat (limited to 'sample/src/main/kotlin/ca/allanwang')
-rw-r--r--sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt16
1 files changed, 12 insertions, 4 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 09002d4..1528970 100644
--- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
+++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt
@@ -16,10 +16,7 @@ import ca.allanwang.kau.searchview.SearchView
import ca.allanwang.kau.searchview.bindSearchView
import ca.allanwang.kau.swipe.SWIPE_EDGE_LEFT
import ca.allanwang.kau.ui.views.RippleCanvas
-import ca.allanwang.kau.utils.materialDialog
-import ca.allanwang.kau.utils.navigationBarColor
-import ca.allanwang.kau.utils.startActivity
-import ca.allanwang.kau.utils.toast
+import ca.allanwang.kau.utils.*
import ca.allanwang.kau.xml.showChangelog
import com.mikepenz.google_material_typeface_library.GoogleMaterial
@@ -185,6 +182,17 @@ class MainActivity : KPrefActivity() {
onClick = { _, _, _ -> kauLaunchAbout(AboutActivity::class.java); false }
}
+ header(R.string.long_prefs)
+
+ checkbox(R.string.checkbox_3, { KPrefSample.check2 }, { KPrefSample.check2 = it; reloadByTitle(R.string.checkbox_3) }) {
+ descRes = R.string.kau_lorem_ipsum
+ }
+
+ text(R.string.text, { KPrefSample.text }, { KPrefSample.text = it }) {
+ descRes = R.string.kau_lorem_ipsum
+ textGetter = { string(R.string.kau_lorem_ipsum) }
+ }
+
}
fun subPrefs(): KPrefAdapterBuilder.() -> Unit = {