如何创建拉出菜单作为新活动
如何创建拉出菜单作为新的Activity
。
是否有可能有一个按钮,您可以像 Google 内置的摄像机应用程序一样拉出一个按钮,然后启动一个新的活动?
按钮支架是否拉出?如果不是,那是什么?
How do you create a pull out menu as a new Activity
.
Is it possible to have a button that you can pull out as in the Google's built in camcorder app and have that start a new activity?
Does a button support pull out? If not, what does?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅更新 2 以获得最佳解决方案!
我想我也有同样的问题。为了更好地理解,我用图片来描述它。我希望你们能为 Namratha 和我提供一些帮助...
(哦,我刚刚注意到, ImageUploader 搞乱了我在图片中的书写。它应该说“我想在我的应用程序中构建一个下拉菜单。它应该像这个示例一样工作。”)
更新
谢谢Janusz,他告诉我应该寻找什么。
由于某种原因,我总是在 Eclipse 布局预览中收到此错误:
That's the layout xml。我刚刚删除了可绘制资源指针...
更新2
刚刚注意到,有一个对我来说更好的解决方案。因为SlidingDrawer Widget只支持从下往上滑动。我第一次更新时出现的错误仍然存在。
See Update 2 for best solution!
I guess I have the same problem. For better understanding, I described it here in a picture. I hope u guys can provide Namratha and me some help...
(Oh I just noticed, the ImageUploader messed up my writing in the picture. It shall say "I'd like to build a drop down menu into my app. It should work just like this example.")
Udpate
Thanks to Janusz, who told me what I should look for.
For some reason I always get this error in my Eclipse Layout Preview:
That'S the layout xml. I just removed the drawable resource pointers...
Update 2
Just noticed, there is a better solution for me. Because the SlidingDrawer Widget only supports sliding from bottom to the top. The error from my first Update is still existing.
用于这种布局的小部件是 滑动抽屉。您只需为手柄定义一种布局,并为抽屉的内容定义一种布局。现在您可以监听一些事件,例如抽屉被打开、滚动或关闭。
The widget used for this kind of Layout is a Sliding Drawer. You just have to define a layout for the handle and one for the content of the drawer. Now you can listen to some events like the drawer was opened, scrolled or closed.