开发者

Android - Should I use multiple activities or multiple content views

开发者 https://www.devze.com 2022-12-20 23:56 出处:网络
i\'m new with android. I\'m working on an application using xml layouts. I wish to know which is better:

i'm new with android.

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' n开发者_Python百科eeded

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

thx a lot


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消