[英]Android: keep background view change foreground view
I'm making an app that uses a video feed. 我正在制作一个使用视频供稿的应用。 There will be several UI elements displayed on the screen. 屏幕上将显示几个UI元素。 Based on what buttons the user clicks, the UI will evolve and show different buttons/options. 根据用户单击的按钮,UI会演变并显示不同的按钮/选项。
What's the best way to implement the changing UI in terms of activities. 就活动而言,实现变化的UI的最佳方法是什么。 Should I use 1 activity,(so that I only have to load the video buffer one time), and update the UI setup within that activity? 我应该使用1个活动,(这样我只需要加载一次视频缓冲区),并在该活动中更新UI设置? OR, should I have a different activitty for each UI combination, reloading the video in the background each time? 或者,对于每个UI组合,我是否应该具有不同的活动性,每次都在后台重新加载视频?
碎片在这里会是一个不错的选择吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.