button styler removed

This commit is contained in:
Vladimir Enchev
2015-06-12 16:15:19 +03:00
parent be80dc52fd
commit d03e45b633

View File

@ -339,23 +339,6 @@ export class TextViewStyler implements definition.stylers.Styler {
} }
} }
export class ButtonStyler implements definition.stylers.Styler {
//Background methods
private static setButtonBackgroundProperty(view: view.View, newValue: any) {
(<android.view.View>view.android).setBackgroundColor(newValue);
}
private static resetButtonBackgroundProperty(view: view.View, nativeValue: any) {
(<android.view.View>view.android).setBackgroundResource(constants.btn_default);
}
public static registerHandlers() {
style.registerHandler(style.backgroundColorProperty, new stylersCommon.StylePropertyChangedHandler(
ButtonStyler.setButtonBackgroundProperty,
ButtonStyler.resetButtonBackgroundProperty), "Button");
}
}
export class ActivityIndicatorStyler implements definition.stylers.Styler { export class ActivityIndicatorStyler implements definition.stylers.Styler {
//Visibility methods //Visibility methods
public static setActivityIndicatorVisibilityProperty(view: view.View, newValue: any) { public static setActivityIndicatorVisibilityProperty(view: view.View, newValue: any) {
@ -506,7 +489,6 @@ export class BorderStyler implements definition.stylers.Styler {
export function _registerDefaultStylers() { export function _registerDefaultStylers() {
style.registerNoStylingClass("Frame"); style.registerNoStylingClass("Frame");
DefaultStyler.registerHandlers(); DefaultStyler.registerHandlers();
ButtonStyler.registerHandlers();
TextViewStyler.registerHandlers(); TextViewStyler.registerHandlers();
ActivityIndicatorStyler.registerHandlers(); ActivityIndicatorStyler.registerHandlers();
SegmentedBarStyler.registerHandlers(); SegmentedBarStyler.registerHandlers();