我想用开发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:
http://blog.radioactiveyak.com/2011/02/android-app-surgery-earthquake-redux.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.