nativescript
इंटरफ़ेस लागू करें
खोज…
Nativecript में View.OnLayoutChangeListener को लागू करें
let playerLayoutChangeListener = new android.view.View.OnLayoutChangeListener( {
onLayoutChange : function ( v:View, left:number, top:number, right:number, bottom:number, oldLeft:number, oldTop:number, oldRight:number, oldBottom:number):any {
if (left != oldLeft || top != oldTop || right != oldRight || bottom != oldBottom) {
console.log("OnLayoutChangeListener");
__this.changeSurfaceLayout();
}
}
});
एक सतह दृश्य बनाएं http://stackoverflow.com/documentation/proposed/changes/79536
श्रोता जोड़ें:
surfaceView.addOnLayoutChangeListener(playerLayoutChangeListener);
श्रोता निकालें:
surfaceView.removeOnLayoutChangeListener(playerLayoutChangeListener);
Modified text is an extract of the original Stack Overflow Documentation
के तहत लाइसेंस प्राप्त है CC BY-SA 3.0
से संबद्ध नहीं है Stack Overflow