在管理Android应用程序的多个活动 [英] Managing multiple activities in android application

查看:117
本文介绍了在管理Android应用程序的多个活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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:

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

关于仪表盘:

您可以得到例如从的这里

关于的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.

这篇关于在管理Android应用程序的多个活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆