Skip to content

Commit f10666e

Browse files
committed
Merge pull request NativeScript#2126 from NativeScript/android-Button-zindex
zIndex fixed for Android buttons
2 parents 114f8b4 + 1bdd2df commit f10666e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/core/view.android.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,10 @@ export class ViewStyler implements style.Styler {
706706
private static setZIndexProperty(view: View, newValue: any) {
707707
if (view.android.setZ) {
708708
view.android.setZ(newValue);
709+
710+
if(view.android instanceof android.widget.Button){
711+
view.android.setStateListAnimator(null);
712+
}
709713
}
710714
}
711715

0 commit comments

Comments
 (0)