Androidのアプリの作成に挑戦しています。
Eclipse 3.7.2で開発をしていて、対象のOSはAndroid 2.3.3です。
SlidingDrawerを用いて、ボタンを押すと、
画面に配置されているオブジェクトの上にかぶさるように設定画面が出るようにしたいです。
現状のコード(xml)だと、ボタンを押しても下の空きスペースで少ししかせり上がらず、困っています。
イメージとしては、こんな感じにしたいです。 このようなことはできるでしょうか?
できるなら、どのようにすればいいのでしょうか?
SlidingDrawerにこだわらなくても構いません。
よろしくお願いします。
こちらが現状のxmlです。プロジェクト全体が必要なら、言ってください。
<?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:orientation="vertical" >
<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/text_score"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="60dp" />
<View
android:id="@+id/view1"
android:layout_width="wrap_content"
android:layout_height="26dp" />
<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="240dp"
android:text="@string/text_start" />
<Button
android:id="@+id/button2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.00"
android:text="@string/text_stop" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="38dp"
android:layout_weight="0.00" >
<ProgressBar
android:id="@+id/progressBar1"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_toLeftOf="@+id/textView1" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="@string/text_time"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="30dp" />
</RelativeLayout>
<SlidingDrawer
android:id="@+id/slidingDrawer1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:content="@+id/content"
android:handle="@+id/handle" >
<Button
android:id="@+id/handle"
android:layout_width="70dp"
android:layout_height="50dp"
android:text="@string/text_config" />
<LinearLayout
android:id="@+id/content"
android:layout_width="fill_parent"
android:layout_height="150dp"
android:orientation="vertical"
android:background="#808080"
<TextView
android:id="@+id/textView3"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/text_assignedscore"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
</SlidingDrawer>
</LinearLayout>