Time for action - creating a SlidingDrawer
For this example, we'll be placing a
SlidingDrawer widget on top of an image (I've once again chosen a photo of one of my friends as my background). For the handle of the
SlidingDrawer, we'll make use of the line drawable XML file that was created for the
TableLayoutActivity. For the content of the
SlidingDrawer, we'll make use of the
- Open the
res/layout/circle_layout.xmlfile in your editor or IDE.
- On the root element declaration, set the background attribute to black:
<com.packtpub.layouts.CircleLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
- Create a new layout ...