在管理Android应用程序的多个活动多个、应用程序、Android

2023-09-12 05:04:47 作者:凉心凉情凉自己丶

我有一个Android应用程序有许多活动。我渲染通过创建一个Intent对象的权利在其code从previous下一个活动。我觉得这种code很烂。是否有任何好的方式来实现管理活动中的应用,最佳做法?

I have an android application with many activities. I render next activity from the previous by creating an Intent object right in its code. I think this kind of code sucks. Are there any "good" ways to implement activities management in the application, best practices?

推荐答案

其实,还有我们的Andr​​oid开发者遵循一些标准做法:

Actually, there are some standard practices that we android developer follows:

创建仪表盘和启动基于特定的仪表盘选项点击活动 按照标签栏的设计

关于仪表盘:

您可以得到例如从的这里。

关于的TabBar: 为什么我preFER仪表盘比的TabBar?正因为它真的是很容易实现的活动管理仪表板,而在标签布局,我们必须实现的的ActivityGroup 概念,真的非常难以处理相比,仪表板的布局。

About TabBar: Why i prefer Dashboard as compared to Tabbar? Just because it is really very much easy to implement activity management in dashboard while in tab layout we have to implement ActivityGroup concept and really very much hard to handle as compared to Dashboard layout.