Skip to content
jhaynie edited this page Sep 13, 2010 · 16 revisions

The following is the working documentation for the Ti application xml file:

The following are elements that are children of ti:app:

name

The name of the application which is displayed in various parts of the application.

appc:endpoint

The service endpoint for appcelerator applications (optional)

window

window has the following attributes:

  • width – initial windows width
  • height – initial window height
  • min-width – minimum window width (defaults to 0)
  • min-height – minimum window height (defaults to 0)
  • max-width – maximum window width (defaults to 9000)
  • max-height – maximum window height (defaults to 9000)

title

Main title of the application window.

start

The main HTML page to open when the application starts.

maximizable

specify true (default) to indicate that the application window can be maximized

minimizable

specify true (default) to indicate that the application window can be minimized

closeable

specify true (default) to indicate that the application window can be closed

resizable

specify true (default) to indicate that the application window can be resized

chrome

specify true to indicate that the application will manage its own window chrome and that the system chrome should not be drawn.

chrome has an optional scrollbars attribute which indicates where the default scrollbar should be drawn in the main application view.

fullscreen

specify true to indicate that the application will run in full screen mode. when full screen is specified, the user must automatically use it’s own chrome.

transparency

specify the transparency value of the main window as a float from 0.0-1.0. 1.0 is the default and means no transparency.

Example config:


<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org" xmlns:appc="http://www.appcelerator.org">
   <name>FoobarAppName</name>
   <window width="800" height="600">
      <title>Titanium Test</title>
      <start>index.html</start>
      <maximizable>true</maximizable>
      <minimizable>true</minimizable>
      <closeable>true</closeable>
      <resizable>true</resizable>
      <fullscreen>false</fullscreen>
      <chrome scrollbars="false">true</chrome>
      <transparency>0.8</transparency>
   </window>
</ti:app>

Example Appcelerator App:


<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org" xmlns:appc="http://www.appcelerator.org">
   <name>FoobarAppName</name>
   <appc:endpoint>http://mydomain.com</appc:endpoint>
   <window width="800" height="600">
     <title>My App</title>
     <start>public/index.html</start>


Expanded example (needs to be doc’d):


<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org" xmlns:appc="http://www.appcelerator.org">
	<id>org.titaniumapp.tweetanium</id>
	<name>Tweetanium</name>
	<description>Titanium-based twitter client application</description>
	<copyright>Copyright (c) 2008 Appcelerator, Inc.</copyright>
	<homepage>http://tweetanium.com</homepage>
	<version>0.1</version>
	<window width="380" height="740" min-height="200" min-width="300" max-height="700" max-width="500">
		<title>Tweetanium</title>
		<start>public/index.html</start>
		<maximizable>true</maximizable>
		<minimizable>true</minimizable>
		<closeable>true</closeable>
		<resizable>true</resizable>
		<chrome scrollbars="false">true</chrome>
		<transparency>0.99</transparency>
	</window>
	<icon>
		<image16>tweetanium16.png</image16>
		<image32>tweetanium32.png</image32>
		<image48>tweetanium48.png</image48>
	</icon>
</ti:app>

Clone this wiki locally