简体   繁体   English

Appcelerator App的基本布局

[英]Basic layout of appcelerator app

I creating my first appcelerator app and looking for some info on whether something is possible, and if so is it easy to implement. 我创建了我的第一个appcelerator应用程序,并寻找一些信息确定是否可行,如果可行,是否易于实现。

I'm using Titanium SDK 2.0.1. 我正在使用Titanium SDK 2.0.1。

I'm trying to create a layout similar to the Stream window in the Google+ app for Android: 我正在尝试在Android版Google+应用中创建类似于“流”窗口的布局:
1: A large header (Can the navbar property of Ti.UI.createWindow be adjusted?) 1:标头较大(可以调整Ti.UI.createWindow的navbar属性吗?)
2: Two tabs under the header (Would like to be able to adjust height of them if possible? Are there alternatives to Ti.UI.createTabGroup if this is not possible?) 2:标题下的两个选项卡(如果可能,是否希望调整它们的高度?如果不可能,是否可以使用Ti.UI.createTabGroup的替代方法?)

The main content I can figure out easily enough I reckon. 我认为我可以很容易地弄清主要内容。

我想复制的Google+布局

Any examples or links on how to achieve this layout would be great. 关于如何实现此布局的任何示例或链接都很好。

Thanks 谢谢

There is no way to do that type of NavBar in Android using the native Ti.UI.Window properties, but you can just create your own NavBar using a view and stick to the top of the window. 在Android中,无法使用本机的Ti.UI.Window属性来执行这种类型的NavBar,但是您可以仅使用视图创建自己的NavBar,并停留在窗口顶部。 For the tabs, I'd look at http://www.tomaspersson.com/2012/03/20/titanium-viewpager-module-now-available/ - I'm not sure it will have all the options you need, but it is a good starting point. 对于标签,我将查看http://www.tomaspersson.com/2012/03/20/titanium-viewpager-module-now-available/-我不确定它是否会提供您所需的所有选项,但这是一个很好的起点。 Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM