From 4706b8f6a8d08a6961da6ab34d15881b63356d79 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 23 Jul 2017 13:13:36 -0700 Subject: Update kpref-activity's min-sdk and other minor changes (#11) * Move some resources to public * Lower kpref minsdk * Remove excess kauUtils annotations * Allow nullable throwable * Do not throw null throwable * Make image picker base abstract again * Migrate about strings to private * Update readme * Update readme * Update sample tagging * Update adapter readme --- .../ca/allanwang/kau/kpref/activity/KPrefActivity.kt | 2 ++ .../kau/kpref/activity/items/KPrefCheckbox.kt | 3 ++- .../kau/kpref/activity/items/KPrefItemCore.kt | 4 +++- kpref-activity/src/main/res-public/values/ids.xml | 19 +++++++++++++++++++ kpref-activity/src/main/res-public/values/public.xml | 17 ++++++++++++++++- .../src/main/res/layout/kau_pref_checkbox.xml | 2 +- kpref-activity/src/main/res/layout/kau_pref_core.xml | 8 ++++---- .../src/main/res/layout/kau_pref_header.xml | 4 ++-- .../src/main/res/layout/kau_pref_seekbar.xml | 2 +- .../src/main/res/layout/kau_pref_seekbar_text.xml | 2 +- kpref-activity/src/main/res/layout/kau_pref_text.xml | 2 +- kpref-activity/src/main/res/values/ids.xml | 19 ------------------- 12 files changed, 52 insertions(+), 32 deletions(-) create mode 100644 kpref-activity/src/main/res-public/values/ids.xml delete mode 100644 kpref-activity/src/main/res/values/ids.xml (limited to 'kpref-activity/src') diff --git a/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/KPrefActivity.kt b/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/KPrefActivity.kt index b978a6e..91c0cf2 100644 --- a/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/KPrefActivity.kt +++ b/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/KPrefActivity.kt @@ -1,5 +1,6 @@ package ca.allanwang.kau.kpref.activity +import android.annotation.SuppressLint import android.os.Bundle import android.support.annotation.StringRes import android.support.constraint.ConstraintLayout @@ -51,6 +52,7 @@ abstract class KPrefActivity : AppCompatActivity(), KPrefActivityContract { */ abstract fun kPrefCoreAttributes(): CoreAttributeContract.() -> Unit + @SuppressLint("NewApi") override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) //setup layout diff --git a/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefCheckbox.kt b/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefCheckbox.kt index 19bdb56..5738022 100644 --- a/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefCheckbox.kt +++ b/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefCheckbox.kt @@ -1,5 +1,6 @@ package ca.allanwang.kau.kpref.activity.items +import android.support.v7.widget.AppCompatCheckBox import android.view.View import android.widget.CheckBox import ca.allanwang.kau.kpref.activity.R @@ -15,7 +16,7 @@ open class KPrefCheckbox(builder: BaseContract) : KPrefItemBase) { super.bindView(viewHolder, payloads) @@ -50,7 +52,7 @@ abstract class KPrefItemCore(val core: CoreContract) : AbstractItem + + + + + + + + + + + + + + + + + + diff --git a/kpref-activity/src/main/res-public/values/public.xml b/kpref-activity/src/main/res-public/values/public.xml index cf14680..b5fb383 100644 --- a/kpref-activity/src/main/res-public/values/public.xml +++ b/kpref-activity/src/main/res-public/values/public.xml @@ -1,4 +1,19 @@ - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kpref-activity/src/main/res/layout/kau_pref_checkbox.xml b/kpref-activity/src/main/res/layout/kau_pref_checkbox.xml index 016394f..1fecb4d 100644 --- a/kpref-activity/src/main/res/layout/kau_pref_checkbox.xml +++ b/kpref-activity/src/main/res/layout/kau_pref_checkbox.xml @@ -1,4 +1,4 @@ - - - - \ No newline at end of file diff --git a/kpref-activity/src/main/res/layout/kau_pref_seekbar.xml b/kpref-activity/src/main/res/layout/kau_pref_seekbar.xml index 8da4d5d..0b07e1c 100644 --- a/kpref-activity/src/main/res/layout/kau_pref_seekbar.xml +++ b/kpref-activity/src/main/res/layout/kau_pref_seekbar.xml @@ -1,4 +1,4 @@ - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3