Now that you have the UI defined, let's set up a fragment to display it. The fragment will be hosted by the main activity so you'll make some changes in the main activity class shortly to enable this.
Create a new class named MainFragment that's a subclass of the Fragment class.
Open up the class and override the onCreateView() method to set up the layout.