[英]activity or fragment? help me out to choose
As per the given UI, Fragments would be the best option.根据给定的 UI,片段将是最佳选择。 I would suggest you, use the Navigation component for the fragment navigation.
我建议您使用 Navigation 组件进行片段导航。
You can visit the documentation of Navigation Component by Jetpack: Navigation component Guide您可以访问 Jetpack Navigation Component 的文档: Navigation component Guide
Happy Coding :)快乐编码:)
Use fragments for this scenario, because fragments gives the freedom to reuse the components and also maintains the back navigation in such scenarios.在这种情况下使用片段,因为片段可以自由地重用组件,并在这种情况下维护后退导航。
Also do take a look at the Android's Navigation Component.也请看一下Android 的导航组件。 , as you can maintain the flow of the navigation of the application properly.
,因为您可以正确维护应用程序的导航流程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.