在钛中创建app.tss

时间:2014-06-27 07:03:54

标签: titanium titanium-mobile titanium-alloy

如何在Titanium中创建app.tss?我正在关注此链接http://www.smashingmagazine.com/2014/03/10/4-ways-build-mobile-application-part4-appcelerator-titanium/

我认为app.tss不是合金控制器所以我不能在Project Explorer中右键单击应用程序并创建合金控制器。

我应该右键单击并创建一个新文件并将其标记为app.tss。这会对整个项目产生负面影响吗?

1 个答案:

答案 0 :(得分:2)

I think that app.tss is not an alloy controller so I can't just right click on the app in Project Explorer and create an alloy contoller.

是的,你是对的,它不是合金控制器。扩展名为TSS的文件为Titanium样式表。 app.tss包含全局可访问的样式,它位于名为app/styles的文件夹中。默认情况下,您应该在项目中使用它。

如果您不这样做,只需右键单击文件夹styles - >新 - >合金风格