For example, the MainActivity in the Hello World app inflates a text view and prints Hello World. The Java code that displays and drives the user interface is contained in a class that extends Activity and contains methods to inflate views, that is, take the XML layout of views and display it on the screen. You can explore the view hierarchy of your app in the Layout Editor's Component Tree pane. pop up menus and other interactive components.contain other views and position them ( LinearLayout).contain scrollable text ( ScrollView) and scrollable items ( RecyclerView).represent clickable buttons ( Button class) and other interactive components.allow you to edit text ( EditText class).For example, views can be components that:
You specify the views in XML layout files. Views are Android's basic user interface building blocks. The user interface displayed on the screen of a mobile Android device consists of a hierarchy of "views".
This course is now deprecated and this content will be The new course is available atĪndroid Developer Fundamentals course (Version 2), or go directly to Lesson 11: Sharing Data with Content Providersġ1.1A: Implementing a Minimalist Content Providerġ1.1B: Adding a Content Provider to Your Databaseġ2.1: Loading and Displaying Fetched DataĪ new version of this course is now available, updated to reflectīest practices for more recent versions of the Android framework andĪndroid Studio. Lesson 8: Triggering, Scheduling, and Optimizing Background Tasks Lesson 3: Testing, Debugging, and Using Support LibrariesĤ.1: Using Keyboards, Input Controls, Alerts, and PickersĤ.2: Using an Options Menu and Radio ButtonsĤ.3: Using the App Bar and Tabs for Navigationĥ.2: Material Design: Lists, Cards, and Colorsĥ.3: Supporting Landscape, Multiple Screen Sizes, and Localizationħ.2: Connect to the Internet with AsyncTask and AsyncTaskLoader 1.1: Install Android Studio and Run Hello World