From 9832aed0ea96312e59ed75c788a1b843f1947a7e Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 17 Jun 2017 15:20:42 -0700 Subject: Add animations --- .../allanwang/kau/kpref/items/KPrefColorPicker.kt | 3 +-- library/src/main/res/values/styles_animations.xml | 30 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 library/src/main/res/values/styles_animations.xml (limited to 'library/src/main') diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefColorPicker.kt b/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefColorPicker.kt index 9917ffb..2ec0a34 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefColorPicker.kt +++ b/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefColorPicker.kt @@ -58,13 +58,12 @@ class KPrefColorPicker(val builder: KPrefColorContract) : KPrefItemBase(bui * Default implementation of [KPrefColorContract] */ class KPrefColorBuilder(attributes: CoreAttributeContract, - titleRes: Int, + override var titleRes: Int, getter: () -> Int, setter: (value: Int) -> Unit ) : KPrefColorContract, BaseContract by BaseBuilder(attributes, titleRes, getter, setter), ColorContract by ColorBuilder() { override var showPreview: Boolean = true - override var titleRes: Int = -1 } override fun getType(): Int = R.id.kau_item_pref_color_picker diff --git a/library/src/main/res/values/styles_animations.xml b/library/src/main/res/values/styles_animations.xml new file mode 100644 index 0000000..a991132 --- /dev/null +++ b/library/src/main/res/values/styles_animations.xml @@ -0,0 +1,30 @@ + + + + + + + + + -- cgit v1.2.3