Application level floating views with navigation in Android

℡╲_俬逩灬. 提交于 2019-12-24 04:05:30

问题


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

2 - Dialog

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

  • What is the best way to add multiple views and providing navigation between them while keeping everything above the application that is running it.
  • How can we add Activity so that it won't pause user application?

回答1:


You should open Activity and implement all navigation inside it.

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.



来源:https://stackoverflow.com/questions/28964771/application-level-floating-views-with-navigation-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!