如何在android系统显示片段? [英] How to display fragment in android?

查看:143
本文介绍了如何在android系统显示片段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要显示在我的一个活动的片段中,我想在地图上的另一个选项卡上显示一个选项卡上的农场和农场的位置列表。我怎样才能做到这一点?我在这个活动实现的底部标签。

I want to display a fragment in my single activity, in which I want to display a list of farms on one tab and locations of farms on map on another tab. How can I do this? I have implemented bottom tab in this activity.

推荐答案

检查本教程的片段,以及如何夸大他们:
http://android-er.blogspot.pt/2011/12/simple-exercise-of-fragment-inflate.html

Check this tutorial about fragments and how to inflate them: http://android-er.blogspot.pt/2011/12/simple-exercise-of-fragment-inflate.html

您也有一吨这个话题的答案...
Android的碎片膨胀布局

You also have a ton of answers about this topic... Android Fragment Inflate layout

这篇关于如何在android系统显示片段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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