Import new custom seekbar preference
* Credits: @difr for his ProperSeekbarPreference
* https://github.com/difr/android_device_xiaomi_land/commit/a92b140a4b5456a5262343467c8eec5ac4dcee37
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index 7ef177a..c8d3895 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -18,8 +18,9 @@
<!-- Base attributes available to CustomSeekBarPreference. -->
<declare-styleable name="CustomSeekBarPreference">
<attr name="interval" format="integer" />
- <attr name="min" format="integer" />
+ <attr name="showSign" format="boolean" />
<attr name="units" format="string|reference" />
+ <attr name="continuousUpdates" format="boolean" />
<attr name="defaultText" format="string|reference" />
</declare-styleable>
diff --git a/res/values/colors.xml b/res/values/colors.xml
new file mode 100644
index 0000000..cc2096c
--- /dev/null
+++ b/res/values/colors.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2019 Havoc-OS
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <color name="disabled_text_color">#66000000</color>
+
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 885549e..eb1a4f8 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -26,4 +26,10 @@
<string name="set">Set</string>
<string name="color_default">Default</string>
+ <!-- Custom seekbar -->
+ <string name="custom_seekbar_value">Value: <xliff:g id="v">%s</xliff:g></string>
+ <string name="custom_seekbar_default_value">by default</string>
+ <string name="custom_seekbar_default_value_to_set">Default value: <xliff:g id="v">%s</xliff:g>\nLong tap to set</string>
+ <string name="custom_seekbar_default_value_is_set">Default value is set</string>
+
</resources>