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.
views:
43answers:
1
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
2010-06-28 22:15:41
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
2010-06-29 00:12:45