在我的mapview上有一个滑动抽屉。当抽屉打开时,我仍然可以通过它触摸并滑动地图。我改变了抽屉的背景颜色,但只改变颜色,它仍然是“透明的”。 有人可以教如何“修复”它吗?谢谢!如何使滑动抽屉不透明?
0
A
回答
0
我相信你应该只需要让抽屉focusable为了在背景中从地图视图中点击(即使那些水龙头没有与它们相关的动作)。
0
+0
感谢答复。但我希望我的滑动抽屉从下到上滑动。 –
0
你需要用滑动抽屉式的内容与背景的LinearLayout中。 这里是将解决您的问题一个xml:
<SlidingDrawer
android:id="@+id/friends_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:orientation="vertical"
android:content="@+id/content"
android:handle="@+id/handle"
android:focusable="true"
>
<Button
android:id="@+id/handle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/pull_me" />
<LinearLayout android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:id="@+id/content"
android:background="#fff">
<ListView
android:id="@+id/friends_lv"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</ListView>
</LinearLayout>
</SlidingDrawer>
1
通过赋予背景色将其内容
<SlidingDrawer xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer"
android:layout_width="100dp"
android:layout_height="fill_parent"
android:content="@+id/content"
android:handle="@+id/handle"
android:orientation="horizontal" >
<ListView
android:id="@+id/navList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:background="#000000"
android:gravity="center_vertical" />
</LinearLayout>
</SlidingDrawer>
相关问题
- 1. Android半透明滑动抽屉
- 2. 透明ActionBarCompat抽屉的GoogleMaps
- 3. DrawerLayout不是滑动抽屉
- 4. 滑动抽屉不显示
- 5. Android:滑动抽屉
- 6. Android滑动抽屉
- 7. 滑动抽屉Android
- 8. Android:如何使导航抽屉不透明?
- 9. 滑动抽屉 - 不推荐使用
- 10. 滑动抽屉动画
- 11. 滑动抽屉隐藏ListView
- 12. Android上下滑动抽屉
- 13. 滑动抽屉选项android
- 14. 摆脱Android导航抽屉半透明
- 15. 导航抽屉列表视图透明
- 16. 抽屉式导航栏透明
- 17. 滑动抽屉并不完美
- 18. LinearLayout @ 422725b0不是滑动抽屉
- 19. 滑动抽屉Android不打开
- 20. 如何在首页按钮上滑动打开滑动抽屉
- 21. 如何做Android - 滑动抽屉从左到右滑动..?
- 22. 滑动抽屉,处理抽屉的位置和宽度。
- 23. 滑动抽屉窗帘动画
- 24. Android:滑动抽屉式动画
- 25. UIViewController半屏“抽屉滑动”动画
- 26. 如何设计一个红色半透明抽屉项头
- 27. 如何使android的滑动抽屉在前景中可见?
- 28. 如何在查看传呼机上使用滑动抽屉?
- 29. Android导航滑动抽屉TabView
- 30. 在android中滑动抽屉问题
没有可对焦不起作用,滑动抽屉仍然是“透明的” –