简体   繁体   English

Android:保持背景视图更改前景视图

[英]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.

相关问题 如何将查看背景/前景更改为特定图案? - How to change View background/foreground to a specific pattern? 更改背景图像但保持可绘制到视图 android xml - Change background image but keep drawable to a view android xml Android视图类-绘制按钮上的视图-背景还是前景? - Android view class - drawing View over button - background vs foreground? Android - 触摸以擦除前景ImageView的部分以显示背景视图 - Android - Touch to erase portions of foreground ImageView to expose background View 在Android中将imageView更改为前景和背景 - change an imageView to foreground and background in Android 设置 android:foreground 查看无边框 - Set android:foreground View borderless FCM前台和后台通知布局视图和PendingIntent - FCM Foreground and Background notification layout view and PendingIntent Android更改导航视图菜单背景 - Android Change Navigation View Menu Background 将背景颜色更改为视图的有限区域-Android - Change background color to a limited area of a view - Android Android背景图片不会根据视图而改变 - Android background image does not change according to the view
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM