Rakesh Gondaliya
Rakesh Gondaliya

Reputation: 1050

Using theme for making android application throgh Titanium

I am making an android application using titanium studio.I have gone through the kitchensink, where almost all the controls and Components are covered.

What i want to add is , 1> To apply common theme for whole application 2> Define styles for different components. So can any body share their ideas regarding implementation and applying theme and styles to Application for making android app using titanium framework.

Upvotes: 1

Views: 998

Answers (1)

rivenate247
rivenate247

Reputation: 2101

You can do this by using JSS. More specifically you need to create a global.jss file.

http://wiki.appcelerator.org/display/guides/Designing+the+User+Interface#DesigningtheUserInterface-SpecifyingGlobalStyles

JSS is very easy to use, just assign an id to specific elements:

#givenId {
    height: 20px;
}

or control an entire object and effect all elements of that object

label {
    font-size: 12px;
}

Upvotes: 1

Related Questions