Appcelerator Titanium: create system buttons / icons without placing them on the toolbar

Is there a way to create system buttons (or image / icon buttons) in Appcelerator Titanium without having to place them on the toolbar? I would just like to post them on a regular basis. Alternatively, I can just create ImageViews, but at the same time lose the inline animations. I hope that I just missed something.

+3
source share
2 answers

Try the following:

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 this helps! Greetings

+1
source

, , , . , . :

var button = Titanium.UI.createButton({ : Titanium.UI.iPhone.SystemButtonStyle.PLAIN : 35, : 35, image: 'img/some_img.png'});

+1

Source: https://habr.com/ru/post/1752157/


All Articles