diff --git a/apps/app/ui-tests-app/page/page-status-bar-css.xml b/apps/app/ui-tests-app/page/page-status-bar-css.xml
index 7552c3b9c..e79655855 100644
--- a/apps/app/ui-tests-app/page/page-status-bar-css.xml
+++ b/apps/app/ui-tests-app/page/page-status-bar-css.xml
@@ -4,35 +4,42 @@
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tns-core-modules/ui/action-bar/action-bar.android.ts b/tns-core-modules/ui/action-bar/action-bar.android.ts
index fe5d63943..8edf161eb 100644
--- a/tns-core-modules/ui/action-bar/action-bar.android.ts
+++ b/tns-core-modules/ui/action-bar/action-bar.android.ts
@@ -427,10 +427,34 @@ export class ActionBarStyler implements style.Styler {
(v._nativeView).setTitleTextColor(nativeValue);
}
+ // background-color
+ private static getBackgroundColorProperty(view: view.View): any {
+ let toolbar = view._nativeView;
+ return toolbar.getBackground();
+ }
+
+ private static setBackgroundColorProperty(v: view.View, newValue: any) {
+ var toolbar = (v._nativeView);
+ if (toolbar) {
+ toolbar.setBackgroundColor(newValue);
+ }
+ }
+
+ private static resetBackgroundColorProperty(v: view.View, nativeValue: any) {
+ var toolbar = (v._nativeView);
+ if (toolbar) {
+ toolbar.setBackgroundColor(nativeValue);
+ }
+ }
+
public static registerHandlers() {
style.registerHandler(style.colorProperty, new style.StylePropertyChangedHandler(
ActionBarStyler.setColorProperty,
ActionBarStyler.resetColorProperty), "ActionBar");
+ style.registerHandler(style.backgroundColorProperty, new style.StylePropertyChangedHandler(
+ ActionBarStyler.setBackgroundColorProperty,
+ ActionBarStyler.resetBackgroundColorProperty,
+ ActionBarStyler.getBackgroundColorProperty), "ActionBar");
}
}