views:

43

answers:

1

Is there a way to create System buttons (or "image/icon" buttons) in Appcelerator Titanium without having to place them on a toolbar? I would like to just be able to place them on a regular view. As an alternative, I can just create ImageViews, but I lose the built-in animations when doing that. I'm hoping I'm just missing something.

A: 

Try this:

var button = Titanium.UI.createButton({
title: 'Some Title',
top:175,
left:5,
width: 190,
height: 35,
font:{fontSize:14},
image: 'img/some_img.png' });

then: Titanium.UI.currentWindow.add(button);

Hope it can help !!
Cheers

Nicolo' Verrini
What I'm actually looking for would be a button with no other visual characteristics other than the image. Basically, exactly like a system icon button. Just not on a toolbar. But thanks for the help anyway!
Donald Hughes