0
当我将滑动窗口小部件添加到我的布局时,遇到了一个路障。我添加了它,一切正常。问题是,当我的布局已经填满高度时,滑动抽屉的把手不再可见。有没有办法通过将手柄置于前景或使用另一种方式来实现这一点来使手柄可见?如何使android的滑动抽屉在前景中可见?
,我有玩的例子是:
https://mobibear.wordpress.com/2010/07/12/android-slidingdrawer-with-custom-view/
所有我从上面的网站编辑是下面的.xml文件。谢谢你的时间提前,我会站在....
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linear"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<TextView
android:id="@+id/textView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Blah Blah Title"
android:gravity="center"
android:textSize="38dp"/>
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</FrameLayout>
<SlidingDrawer xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:handle="@+id/handle"
android:content="@+id/content">
<bear.exmaple.CustomView
android:id="@+id/content"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</bear.exmaple.CustomView>
<ImageView android:id="@id/handle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/tray_handle_normal" />
</SlidingDrawer>
</LinearLayout>