슬라이딩드로어 사용하려구하는데
제가원하는데로 되지않습니다
com.da.web.WebView 가 웹뷰 인데
가로 세로 모두fill_parent 로했는데도
실제보면 화면의 절반정도만 차지합니다
밑부분의 슬라이딩드로어가 절반정도차지하면서
검은색으로 나타나고 그영역내에서 슬라이딩됩니다
제가원하는것은
전체화면으로 웹뷰가 보이고
슬라이딩드로어를 올리면 전체의절반정도까지 펼쳐지게하고싶습니다
어떻게하면되나요?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:gravity="bottom"
>
<com.da.web.WebView
android:gravity="center|center_vertical"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</com.da.web.WebView>
<SlidingDrawer
android:layout_width="wrap_content"
android:id="@+id/SlidingDrawer"
android:handle="@+id/slideButton"
android:content="@+id/contentLayout"
android:padding="10dip"
android:layout_height="250dip"
android:orientation="vertical">
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/slideButton"
>
</Button>
<LinearLayout
android:layout_width="wrap_content"
android:id="@+id/contentLayout"
android:orientation="vertical"
android:gravity="center"
android:padding="10dip"
android:layout_height="wrap_content">
<Button
android:id="@+id/Button01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:text="Option1">
</Button>
<Button
android:id="@+id/Button02"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:text="Option2"></Button>
<Button android:id="@+id/Button03"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:text="Option3">
</Button>
<Button android:id="@+id/Button04"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:text="Option4">
</Button>
</LinearLayout>
</SlidingDrawer>
</LinearLayout>
상당한수의 Custom widget들이 인터넷상에서 공유되고 있습니다.
저는 WrappingSlidingDrawer라는 커스텀 위젯을 찾아서 저의 환경에 맞게
계산식만 조금 수정하여 사용하고 있습니다.