Merge pull request #2126 from NativeScript/android-Button-zindex

zIndex fixed for Android buttons
This commit is contained in:
Vladimir Enchev
2016-05-17 17:11:04 +03:00

View File

@ -706,6 +706,10 @@ export class ViewStyler implements style.Styler {
private static setZIndexProperty(view: View, newValue: any) { private static setZIndexProperty(view: View, newValue: any) {
if (view.android.setZ) { if (view.android.setZ) {
view.android.setZ(newValue); view.android.setZ(newValue);
if(view.android instanceof android.widget.Button){
view.android.setStateListAnimator(null);
}
} }
} }