Android的 - 我应该使用多种活动或多个内容的意见 [英] Android - Should I use multiple activities or multiple content views

查看:134
本文介绍了Android的 - 我应该使用多种活动或多个内容的意见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新与Android。

i'm new with android.

我正在使用XML布局的应用程序。 我想知道哪个更好:  1.使用一些活动,并改变其内容查看  2.使用活动所需的每个视图

I'm working on an application using xml layouts. I wish to know which is better: 1. Use few activities and change its contentview 2. Use an activity for each 'view' needed

如果这两个作品,在这种情况下,哪一种方案会更好一些?

If both works, in which case which option would be better?

THX了很多

推荐答案

一般的规则是使用多种活动。这就是它的意思是这样,你将不会被打破的导航(如要去previous屏由pressing后退按钮)。

The general rule would be to use multiple activities. That's the way it's meant to be and you won't be breaking navigation (e.g. going to the previous "screen" by pressing back button).

这篇关于Android的 - 我应该使用多种活动或多个内容的意见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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