In this chapter, we will cover the following topics: Defining and inflating a layout Using RelativeLayout Using LinearLayout Creating tables—TableLayout and GridLayout RecyclerView replaces ListView Changing layout properties during runtime Introduction In Android, the user interface is defined in a layout. A layout can be declared in XML or created dynamically in code. (It’s recommended to declare the layout in XML rather than inĐọc tiếp “Chapter 2. Layouts”
Bài viết có từ khóa:Android 9
Chapter 1. Activities
This chapter covers the following recipes: Declaring an activity Starting a new activity with an intent object Switching between activities Passing data to another activity Returning a result from an activity Saving an activity’s state Storing persistent activity data Understanding the activity life cycle Introduction The Android SDK provides a powerful tool to program mobileĐọc tiếp “Chapter 1. Activities”