(We all know that the interface display on Android is achieved through Activity. Activity is so common that I believe we have fully understood it now. I won't repeat it here. However, Activity also has its limitations. The same interface may be beautiful on the mobile phone, but not necessarily on the tablet. Because the screen of the tablet is very large, the interface of the mobile phone on the tablet may be excessively stretched and the distance between controls is too large. At this time, it is better to experience the effect that small activities are embedded in activities, and then each small Activity can have its own layout. Therefore, today's leading character Fragment appeared. In order to better display the interface on the tablet, Android introduced the Fragment function in version 3.0, which is very similar to Activity and can include the layout like Activity. Fragments are usually nested in activities. Now imagine this scenario: there are two fragments, Fragment1 includes a ListView, and each row displays a book title. Fragment2 includes TextView and ImageView to display the specific contents and pictures of the book.)