One of the more advanced scenarios in NativeScript for Android is the inheritance of Java classes. Let’s take a look at the following example. // app.js var MyButton = android.widget.Button.extend({ setEnabled: function(enabled) { // do something } }); var btn = new MyButton(context); (Please note that at the time of writing NativeScript is in private …
Continue reading “Java Class Inheritance in NativeScript for Android”