如何实现Android Honeycomb Gmail应用程序的拆分外观?

发布于 2024-12-20 06:04:57 字数 370 浏览 2 评论 0原文

我已经通过 stackoverflow 进行了相当广泛的搜索,但不幸的是没有找到我的问题的决定性答案。

我只是希望实现类似于 Honeycomb 平板电脑上的 Gmail 应用程序的视图定位外观(查看图片)

https ://i.sstatic.net/sC75p.jpg

在我的例子中,左侧会出现一个员工列表,单击其中一个后,有关他们的数据将出现在右侧屏幕与 Gmail 应用程序中一样。两个视图最好都是可滚动的。

我应该从哪个角度来处理这个问题?

更新:在谷歌上搜索了一下这个问题后,我认为片段可能是关键。我说得对吗?

I have searched quite extensively throught stackoverflow but unfortunately found no conclusive answer to my question.

I simply wish to achieve the look of the view positioning similar to the Gmail app on Honeycomb tablets (check the picture)

https://i.sstatic.net/sC75p.jpg

In my case there would be a list of employees on the left side and, after clicking on one of them, data about them would appear on the right side of the screen as in the Gmail app. Both views would preferably be scrollable.

From which angle should I be approaching this?

UPDATE: After googling the issue for a bit I think Fragments may be the key. Am I right?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不爱素颜 2024-12-27 06:04:57

你说得对,碎片是关键。

如果您创建的布局包含两个水平对齐的 LinearLayout,则可以使用两个单独的 Fragments 填充它们,从而创建您正在寻找的外观。

有关示例,请查看SDK 中的此示例
它还包含一个列表,当您选择列表中的项目时,该列表会在另一个片段中打开图像。当然,您也可以用它来展示您想要的员工。

You're right, fragments are the key.

If you create a layout containing two LinearLayouts in the horizontal alignment, you can fill these with two seperate Fragments, creating the look you're looking for.

For an example check this example from the SDK.
It also contains a list which opens an image in the other fragment when you select an item in the list. Of course you can also use this to show an employee as you want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文