且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

按钮打开一个片段

更新时间:2023-11-18 14:14:37

首先,你应该创建的 FragmentActivity 其中有至少的LinearLayout
然后你应该建立两个片段,一个具有的ListView 及其项目,一个有你想要做什么。

First you should create a FragmentActivity which has at least a LinearLayout And then you should create two Fragment, one with the ListView and its items, one with what you want to do with.

在你的 FragmentActivity 您可以管理thoose两个片段交易。

In your FragmentActivity you can manage thoose two Fragment transactions.

精心Android开发者网站的链​​接这一。它拥有你需要的所有信息。

Read this Link from Android Developer Site carefully. It has all information you need.