diff --git a/res/drawable/ic_battery_bar.xml b/res/drawable/ic_battery_bar.xml
new file mode 100644
index 0000000..7e0123b
--- /dev/null
+++ b/res/drawable/ic_battery_bar.xml
@@ -0,0 +1,7 @@
+
+
+
\ No newline at end of file
diff --git a/res/values/cherish_arrays.xml b/res/values/cherish_arrays.xml
index 8a781b5..8b50a96 100644
--- a/res/values/cherish_arrays.xml
+++ b/res/values/cherish_arrays.xml
@@ -669,4 +669,29 @@
- 3
- 4
+
+
+
+ - @string/sb_battery_bar_statusbar
+ - @string/sb_battery_bar_topnav
+ - @string/sb_battery_bar_bottomnav
+
+
+
+ - 1
+ - 2
+ - 3
+
+
+
+ - @string/sb_battery_bar_reg
+ - @string/sb_battery_bar_center
+ - @string/sb_battery_bar_reversed
+
+
+
+ - 0
+ - 1
+ - 2
+
diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml
index 920793f..64a17cf 100644
--- a/res/values/cherish_strings.xml
+++ b/res/values/cherish_strings.xml
@@ -749,4 +749,29 @@
Whether to flash when in Do Not Disturb mode
Rate
Flashlight on call blink rate
+
+
+ Please enable first
+ Battery bar
+ Battery bar
+ Display and customize battery bar near status bar or navigation bar
+ Battery bar location
+ Battery bar color
+ Battery bar style
+ Battery bar thickness
+ Charging animation
+ The charging animation may result in a poor user experience. Enable at your own discretion.
+ Hide
+ Statusbar
+ Top of navbar
+ Bottom of navbar
+ Regular
+ Center-mirrored
+ Battery bar charging color
+ Battery bar low battery color
+ Reversed
+ Use gradient color
+ Use gradient color as a scale for the battery level
+ High level color"
+ Low level color"
diff --git a/res/xml/battery_bar.xml b/res/xml/battery_bar.xml
new file mode 100644
index 0000000..e879552
--- /dev/null
+++ b/res/xml/battery_bar.xml
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/res/xml/cherish_settings_statusbar.xml b/res/xml/cherish_settings_statusbar.xml
index 13915c8..db9a119 100644
--- a/res/xml/cherish_settings_statusbar.xml
+++ b/res/xml/cherish_settings_statusbar.xml
@@ -126,6 +126,12 @@
android:key="battery_style_category"
android:title="@string/battery_style_category_title" >
+
+
getXmlResourcesToIndex(Context context,
+ boolean enabled) {
+ ArrayList result =
+ new ArrayList();
+
+ SearchIndexableResource sir = new SearchIndexableResource(context);
+ sir.xmlResId = R.xml.battery_bar;
+ result.add(sir);
+ return result;
+ }
+
+ @Override
+ public List getNonIndexableKeys(Context context) {
+ List keys = super.getNonIndexableKeys(context);
+ return keys;
+ }
+ };
+}