Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 20. Activity fragments > Creating fragments and fragment layouts

20.2. Creating fragments and fragment layouts

The similarity between activities and fragments makes coding fragments a familiar exercise. To show how to use the fragment API, we’ll use an example that creates a two-pane application that uses two fragments: a summary list view with hyperlinks and a web view for details, as shown in figure 20.2.

Figure 20.2. Dual-pane example



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial