After activity lifecycle events, the next most common type of event in Android is generated by View objects. Every visual object on the screen in an Android app is an instance of a Java class that subclasses the View class. This is true of TextViews, Buttons, EditText components, and so on. Some events are defined in the View class itself.
- [Instructor] After activity life cycle events,…the next most common type of event in Android…is generated by view objects.…Every visual object on the screen…is an instance of a Java class…that's subclass is the view class.…You can learn about the inheritance hierarchy…by going to an activity layout file…and then to the text mode, so you can see the XML code.…Then click into the name of a component…you want to learn about.…Press shift F1, and that should load a browser window…that takes you to the documentation for that component.…
Notice that the TextView component is a subclass of view.…And if I click there, I'll see the documentation…for that component.…Now, if you have any trouble getting to this page that way,…you can instead just go directly…to the documentation on the web.…It's on the developer website,…under reference/android/view/view.html.…From here, click on the methods link.…And then you can scroll around…and find all of the references to various event methods.…
For example, I'll do a web page search…
David also shows how to send and receive broadcast messages that let you exchange data and notifications among the different tiers of your application. He demonstrates how to work with menus and the action bar, add a navigation drawer to a layout, and tackle advanced navigation techniques. Later courses in the Essentials series concentrate on other specific skills you can master.
- Working with events
- Handling events with Java objects and lambda expressions
- Managing navigation
- Sending data to an activity
- Opening other apps with implicit intents
- Sending and receiving broadcast messages
- Working with menus and the action bar
- Adding a navigation drawer
- Advanced navigation techniques
- Removing activities from the back stack