在一个单一的活动使用多个片段 [英] Using Multiple Fragments in an single activity
本文介绍了在一个单一的活动使用多个片段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用开发Android应用程序蜂巢3.0
中,我要显示一个列表,点击任何列表中的项目应该显示该列表之外的另一个列表在片段的形式项目。任何一个可以给我提供样品code在设法解决这个问题?
I want to develop an android application using Honey Comb 3.0
in which I want to display a list , clicking on any item in a list should display another list beside that list item in the form of Fragment. Can any one provide me sample code in sorting out this issue?
在此先感谢,
推荐答案
看一看来自谷歌的雷托•梅耶尔这两个博客文章:
Have a look at these two blog posts from Google's Reto Meier:
- <一个href="http://blog.radioactiveyak.com/2011/02/android-app-surgery-earthquake-redux.html">http://blog.radioactiveyak.com/2011/02/android-app-surgery-earthquake-redux.html
- <一个href="http://blog.radioactiveyak.com/2011/02/strategies-for-honeycomb-and-backwards.html">http://blog.radioactiveyak.com/2011/02/strategies-for-honeycomb-and-backwards.html
- http://blog.radioactiveyak.com/2011/02/android-app-surgery-earthquake-redux.html
- http://blog.radioactiveyak.com/2011/02/strategies-for-honeycomb-and-backwards.html
他有很多的code的例子在那里处理片段。
He has lots of code examples in there for handling fragments.
这篇关于在一个单一的活动使用多个片段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文