机器人,SlidingPaneLayout,主视图是隐藏 [英] android, SlidingPaneLayout, main view is hidden

查看:289
本文介绍了机器人,SlidingPaneLayout,主视图是隐藏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我SlidingPaneLayout的主要观点是一张地图。我设法打开/使用按钮关闭SlidingPaneLayout。问题是当slidinglayout被滑动打开/关闭,主视图(地图)获取隐藏,直到slidingLayout完全打开/关闭。

The main view in my SlidingPaneLayout is a map. I managed to open/close the SlidingPaneLayout using a button. The problem is while the slidinglayout is sliding to open/close, the main view (the map) gets hidden till the slidingLayout is completely opened/closed.

有没有解决这个??办法

is there a way to solve this??

推荐答案

看来,Android正在试图摆脱这种UI模型了。
该SlidingDrawer在API级别17 pcated德$ P $和你SlidingPaneLayout是一个实验性的功能。我建议搞清楚的替代设计。

It seems that Android is trying to move away from this UI model. The SlidingDrawer was deprecated in API level 17 and your SlidingPaneLayout is an experimental feature. I would recommend figuring out an alternative design.

您可能无法看到的MapView,因为它真的很难得出它,而抽屉移动。该SlidingPaneLayout点是帮助SlidingPane中的内容的布局。这只是工作的间距和移动的东西。当你的移动抽屉系统调用onSizeChanged和你的图形页面已被重绘这是非常昂贵的。

Your probably not able to see the mapview because it's really hard to draw it while the drawer is moving. The point of the SlidingPaneLayout is to help the layout of the content within a SlidingPane. This just working with spacing and moving things around. As your moving the drawer the system calls onSizeChanged and your mapview has to be redraw which is really expensive.

这篇关于机器人,SlidingPaneLayout,主视图是隐藏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆