Android 主从流示例

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11773433/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 08:49:09  来源:igfitidea点击:

Android Master Detail Flow Example

androidandroid-layout

提问by SLM

enter image description here

在此处输入图片说明

I'm trying to implement a user interface like above and looking for a good tutorial to or code sample to learn it. Can someone help me to get this done

我正在尝试实现像上面这样的用户界面,并正在寻找一个很好的教程或代码示例来学习它。有人能帮我完成这件事吗

采纳答案by cyroxx

If you are using Eclipse with ADT installed, you can create a new Activity (or Android Project) and select MasterDetailFlow as the template to be used for that activity. This will contain a Master Detail flow with a simple list of items.

如果您使用安装了 ADT 的 Eclipse,您可以创建一个新活动(或 Android 项目)并选择 MasterDetailFlow 作为要用于该活动的模板。这将包含一个带有简单项目列表的主从流。

EDIT

编辑

For an advanced list layout, you will need a customized ListView.

对于高级列表布局,您将需要一个自定义的 ListView。

Examples:

例子:

回答by Yevgeny Simkin

You're going to need to use Fragments.

您将需要使用 Fragments。

Here's how they work: http://developer.android.com/guide/components/fragments.html

以下是它们的工作方式:http: //developer.android.com/guide/components/fragments.html