创建图像浏览器 Boxee App

发布于 2024-10-12 16:50:33 字数 353 浏览 3 评论 0原文

我正在编写一个 Boxee 应用程序,我想列出 picasa 帐户的所有相册。

我面临的问题是我不知道如何在 Boxee 应用程序中列出相册和照片。

应用程序本身应该相当简单: 首先是一个主屏幕,其中列出了您的所有相册,然后当您单击相册时,您会在 4x5 照片网格中看到所有照片 当您单击照片时,您将进入一个视图,其中一张照片显示在整个屏幕上,用户可以在该视图中前后移动该照片。

我已经围绕 gdata photos Python API 编写了一个简单的包装器,我打算使用它,因此希望所有繁重的工作都将由 gdata API 完成。

有没有人有一些关于示例应用程序的良好链接或关于我想要在应用程序中使用的一项或多项功能的教程?

I am writing a Boxee App and I want to list all albums for a picasa account.

The problem I'm facing is that I have no idea of how to list albums and photos in the Boxee app.

The application itself should be fairly simple:
First a main screen where all your albums are listed, then when you click an album you see all your photos in a grid of say 4x5 photos
When you click a photo you go in to a view where one photo is displayed on the whole screen where back and forward lets users go back and forth in that gallery.

I have wrote a simple wrapper arround the gdata photos Python API which I was aiming to use so hopefully all the heavy lifting will be done by the gdata API.

Does anybody have some good links to example applications or tutorials to one or more of the features I want in the application?

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

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

发布评论

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

评论(1

不知在何时 2024-10-19 16:50:33

Boxee 使用基于 XML 的方法来描述应用程序的界面。您的应用程序的每个屏幕都需要一个 XML,并且您将使用 API 将它们连接在一起。

您可以使用 XML API 定义的各种控件来构建此 XML 屏幕。基本上,控件(按钮、列表、标签等)被描述为具有属性和子节点的 XML 节点。您可以在此处查看所有可用控件的列表:http://developer.boxee.tv/UI_Controls

您可以使用 Python API 来控制在 XML 文件中编码的 UI 元素的各种属性。例如,您可以用从服务器拍摄的照片填充列表,您可以更改按钮上的标签,加载另一个屏幕等等。以下是 Python API 规范: http://developer.boxee.tv/Python_API

请务必阅读Boxee 开发页面,还请记住 Box​​ee 源自 XBMC 项目,因此大多数有关 XBMC 换肤的文档 (http ://wiki.xbmc.org/?title=Skinning_XBMC)也适用于 Boxee。

另一件可能对您有帮助的事情是查看其他应用程序。找到一个与您想要做的事情类似的应用程序,在 Boxee 的应用程序文件夹中找到它并查看那里的代码。

Boxee uses an XML based approach for describing an application's interface. You'll need one XML for each screen of your application and you'll connect them together using the API.

You would build this XML screens using various controls defined by the XML API. Basically a control (a button, a list, a label, etc) is described as an XML node with attributes and child nodes. You can check a list of all the available controls here: http://developer.boxee.tv/UI_Controls

You can use the Python API to control various properties of the UI elements you coded in your XML files. For example you could fill a list with photos taken from a server, you could change the label on a button, load another screen and much more. Here are the Python API specs: http://developer.boxee.tv/Python_API

Make sure you read trough the Boxee dev pages and also remember that Boxee originated from the XBMC project so most of the documentation regarding XBMC skinning (http://wiki.xbmc.org/?title=Skinning_XBMC) also applies to Boxee.

Another thing that might help you is looking at other apps. Find an app that is somehow similar to what you want to do, find it in Boxee's app folder and peek at the code there.

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