How to keep a dialog/activity on the top of other activities, no matter if user switch between activities,it should be alive all the time.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Personnaly, I will do something like that :
1) Create a class which extends from DialogFragment :
2) Then in your activities :
3) And you put in a bundle the type of the dialog that the next activity can get it and show it again.
You can use Relative layout as a parent, by using Relative Layout, you can overlap the other layout. So, you have to use to two child layout of relative layout. In the one child you will have popup, and in another layout you have to keep changing your layout..
If you want this across multiple activities. You must create a separate layout and include that in all activities, and create an interface to handle the button events in the popup.
or
You can create a base activity, having above mentioned layout, and extends that activity in all other activities where you want this layout.
Regards, Yuvi