Google IO Sched 应用程序 - 平板电脑布局和布局碎片

发布于 2024-11-09 16:40:10 字数 1099 浏览 3 评论 0 原文

我只是愚蠢还是什么?

因此,查看 IO Sched 源代码,我想了解他们如何在平板电脑主页活动上获得与手机主页活动不同的布局。

我正在查看最新的源版本吗? https://github.com/underhilllabs/iosched

这是activity_home.xml:

https://github.com/underhilllabs/iosched/blob/master/res/layout/activity_home.xml

它基本上只是描述操作栏和仪表板布局。

然而,在平板电脑上,家庭活动还显示实时流片段。

在 IO 视频中,他用片段描述了这些屏幕:

http: //www.youtube.com/watch?v=WGIU2JX1U5Y&feature=player_embedded#t=2561s

我还检查了HomeActivity 类,这似乎没有做到这一点:

https://github.com/underhilllabs/iosched/blob/master/src/com/google/android/apps/iosched/ui/HomeActivity.java

所以我看不到如何或平板电脑的布局是否正常工作以及片段已在何处声明。有人可以给我提示吗?

谢谢

Am I just being dumb or what.

So checking out the IO Sched source I wanted to see how they got a different layout on the tablet home activity than the phone home activity.

Am I looking at the latest source version?
https://github.com/underhilllabs/iosched

So here is activity_home.xml:

https://github.com/underhilllabs/iosched/blob/master/res/layout/activity_home.xml

And it basically is just describing the action bar and the dashboard layout.

However on the tablet the home activity also shows a realtime stream fragment.

On the IO video he is describing these screens with fragments here:

http://www.youtube.com/watch?v=WGIU2JX1U5Y&feature=player_embedded#t=2561s

I've also checked the HomeActivity class and this doesn't seem to do it:

https://github.com/underhilllabs/iosched/blob/master/src/com/google/android/apps/iosched/ui/HomeActivity.java

so I cannot see how or were the layout for the Tablet is working and where the fragments have been declared. Could someone give me a hint?

Thanks

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

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

发布评论

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

评论(1

怪我鬧 2024-11-16 16:40:10

这似乎是原始版本的分支,位于 http://code.google.com/p/iosched 。在原始代码中,针对不同的屏幕尺寸和操作系统版本,有一些额外的布局。我认为“Honeycomb Xlarge Landscape”布局目录 有您要查找的内容。

This appears to be a fork of the original which is at http://code.google.com/p/iosched . In the original code, there are some additional layouts for different screen sizes and OS versions. I think that the "Honeycomb Xlarge Landscape" layout directory has what you're looking for.

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