应用级浮观点与导航机器人 [英] Application level floating views with navigation in Android

查看:166
本文介绍了应用级浮观点与导航机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要显示一个浮动按钮,将在窗口管理器中添加,因此留在所有活动中的顶级。 (我做了使用这部分 https://github.com/marshallino16/FloatingView

I have to show a floating button that will be added in WindowManager so it remain on the top of all Activities. (I have done this part using https://github.com/marshallino16/FloatingView)

当被点击该按钮我必须打开屏幕,显示详细视图和其他视图之间切换。要做到这件事情我可以做以下的事情或者添加

When that button is tapped I have to open screen and show detail view and navigate between other views. To achieve this thing I can do following things either adding

1 - PopUpWindow

1 - PopUpWindow

2 - 对话

但我不能提供使用其中任何一个导航。所以我的问题是。

But I cannot provide navigation using either of them. So my questions is.

  • 什么是添加多个视图,并在保持上述运行它的应用程序都提供了它们之间的导航。
  • 的最佳途径
  • 我们怎样才能添加的活动,使其不会暂停用户的应用程序?

推荐答案

您应该打开活动并执行它里面所有的导航。

You should open Activity and implement all navigation inside it.

Android的可能会暂停活动的背后,这样会让你的活动只针对屏幕的一部分。

Android may pause activities behind, so make your Activity only for part of the screen.

在活动隐藏浮动按钮,并再次显示上的退出。

Inside Activity hide floating button and show it again on exit.

这篇关于应用级浮观点与导航机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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