To fully demonstrate working Fragments, we'll need to create two Fragments. The first Fragment will extend from ListFragment so it will not need a layout. We're going to go one step further by creating both portrait and landscape layouts for our Activity. For portrait mode, we'll swap Fragments and for landscape mode, we'll show both Fragments side by side.
Here are the steps, starting with the first Fragment:
- Create a new ...