Changes

Jump to: navigation, search

Android Explicit Intents – An Android Studio Example

31 bytes added, 16:42, 26 December 2015
Designing the User Interface Layout for ActivityA
</RelativeLayout>
</pre>
<google>ADSDAQBOX_FLOW</google>
As covered in [[An Overview and Android Studio Example of Android Event Handling]], the android:onClick="onClick" resource line in the above XML listing uses an alternative way to handle simple click events without having to implement an event listener in the Java code of the activity. By specifying the onClick event type and the method to be called when such an event is detected, it is quick and easy to wire up basic click event handling on a view. Once the onClick() method has been implemented in the ActivityA.java file, it will be called whenever the button is touched by the user.

Navigation menu