<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="300dip"
android:layout_gravity="bottom"
android:background="#808080">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Something here: \nIt's a exercise \nof SlidingDrawer"
/>
<SlidingDrawer
android:id="@+id/drawer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:handle="@+id/handle"
android:content="@+id/content">
<ImageView
android:id="@id/handle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/icon"
android:background="#404040"/>
<LinearLayout
android:id="@id/content"
android:layout_width="fill_parent"
android:layout_height="200dip"
android:orientation="vertical"
android:background="#606060"
>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text=" - Button - "/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text=" - Button - "/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text=" - Button - "/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="It's content of SlidingDrawer"/>
</LinearLayout>
</SlidingDrawer>
</FrameLayout>
<Button
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="5dip"
android:text=" - A Bit Button - "/>
</LinearLayout>
Related:
- SlidingDrawer in horizontal
- Inflate SlidingDrawer from XML
No comments:
Post a Comment