protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
cursor = fetchAllDiary();
this.setListAdapter(new DiaryListAdapter(this, cursor, true));
View drawer_view = mInflater.inflate(R.layout.drawer, null);
LayoutParams params = new LayoutParams(200,150);
getWindow().addContentView(drawer_view, params);
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/frameLayout">
<SlidingDrawer android:id="@+id/diary_list_row_drawer"
android:layout_height="wrap_content"
android:handle="@+id/handle"
android:content="@+id/content"
android:orientation="vertical"
android:layout_width="fill_parent"
android:topOffset="50px">
<ImageView android:id="@id/handle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/bottom_switcher_collapsed" />
<LinearLayout android:id="@id/content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/backround_color_lightblue1">
<Button android:text="Button01"
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<Button android:text="Button02"
android:id="@+id/Button02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
</SlidingDrawer>
</LinearLayout>