mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
implemented CSS animations
fixing animation tests
This commit is contained in:
@@ -36,6 +36,24 @@ export class Button extends common.Button {
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
||||
this._android.setOnTouchListener(new android.view.View.OnTouchListener(
|
||||
<utils.Owned & android.view.View.IOnTouchListener>{
|
||||
get owner() {
|
||||
return that.get();
|
||||
},
|
||||
|
||||
onTouch: function(v, ev) {
|
||||
if (ev.getAction() === 0) { // down
|
||||
this.owner._goToVisualState("highlighted");
|
||||
}
|
||||
else if (ev.getAction() === 1) { // up
|
||||
this.owner._goToVisualState("normal");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
));
|
||||
}
|
||||
|
||||
public _onTextPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
|
||||
Reference in New Issue
Block a user