CHAPTER 8: Android UI Design: Using Advanced ViewGroup Layout Containers 293
Figure 8-20. Add a
Then copy and paste the required layout_width and layout_height parameters from the
shown in Figure 8-19 is the following:
<android.support.v4.widget.SlidingPaneLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/spLayout"
xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity"
android:layout_width="match_parent" android:layout_height="match_parent" >
Go to the bottom of the new UI definition, and add a
the closing
is shown in Figure 8-20.
Since the
parameter, let’s copy the three galaxy images, named galaxybutton1.png, galaxybutton2.png, and
galaxybutton3.png into the /res folder using the Windows Explorer file management utility next.
As you can see in Figure 8-21, I have copied these files, which are in the project files repository for
the book, into the /res/drawable-hdpi folder.