Community Questions & Answers

Text will not align on button

I am using the following code. The text on the button centers itself. What do I need to do to get it to left align? Thank you. ~~~ var btn = Ti.UI.createButton ({ backgroundColor: '#444444', title: 'Just some text', textAlign:...

Change the label of the back button

Hello, Titanium SDK version: 1.6.2 iPhone SDK version: 4.2 How can I change the label for the dynamic back button? I want it to say Back instead of the name of the previous window. Thanks!

3,181 views
asked 4 years ago by James -
last activity 5 weeks ago

Button Plays 2 Sounds in Order

Hey all, i want the playButton to play the goatsound first, than play the roostersound. With the code below, they both play at the same time!! please help! ~~~ var goatsound = Ti.Media.createSound({url:"sounds/goat.wav"}); ...

How to pass value TextField to alert?

how can i pass values text field from Alert dialog? This is My text field ~~~ tableView = function(e){ var tableView = Titanium.UI.createTableView({ left : 0, right : 0, top : e.top, bottom : 0, width : Ti.UI.FILL, height :...

Buttons plays 3 sounds in order

Hey all, i want to make a button play 3 sounds in the order that i choose, with the code that i have below,they all play at the same time. note:each sound has a button attached to it and when the sound is playing the button's width increases by (this part...

1 Time Use Button

hey all, i wanted to make a button that can only be pressed once after which it will disappear... however this button should be present if the window is refreshed... My code so far... ~~~ startButton = Ti.UI.createButton...

Sequencing in Event Listeners

hey all, I was wondering how i could make 3 things happen in a specific order when a button is pressed. For example, if i wanted to first display an alert than a sound of cow followed by a sound of a dog. When i put all 3 in the event listener, the two...

More than one Button right aligned?

Sorry for this repost, but i really need an advice for this. Ok, ... i try to create this layout ![Buttons right aligned] (http://www.greenphp.de/tibuttongroup.gif) "The label" is aligned left and x buttons should be aligned right. - But this...

Button with background image vs. imageview

I have some custom button images for my application. It seems like I can implement them as either buttons with a background image or as imageviews. I can't find many noticeable differences that would make one a better option than the other. From what I...

Need help with scrollable button menu

I'm trying to build a menu, loaded from an external XML file (on my server), but I'm having some problems translating the XML to a scrollable button menu. In my .js file I have a createMenu(); function which is initially loaded (see code below)....

PAYPAL BUTTON

Hi, I am getting some problem using the latest paypal module for titanium with ti. SDK 3.1.1 GA. On android the paypal button is not even showing up giving the button display error and on iOS it shows up but does nothing and after sometime it says...

button inside 2 views is not clickable

Hi, I've got some buttons which appear inside a view which is the child of another view. The button doesn't work (is not clickable), but when I add the button to the parent view it works fine. So seems like there is some issue with a button inside 2...

Setting image for a button issue

I am setting image for a button with a background color. The image color is white with a transparent background. When i set this image for a button it appears in blue color. When i am setting this as background image there is no...

Gradient is not applying for iOS Button

Hi all, I am trying to apply gradient color for Button in iOS Below is the code i am using it is working fine in iOS "Button" is the argument i am passing from other file. Button.backgroundGradient = { type : 'linear', ...

Airplay button ?

Hello, I was looking at [this post](http://developer.appcelerator.com/question/144330/airplay-support-module) and was wondering if a solution for create a iTunes-like Airplay button to put in an app existed ? There's nothing about this on search...

How to disable a button

Hi i have a button with an event listener, i did this ~~~ buttonname.enabled=false; ~~~ but its not working event listerner is still firing.How to disable this button?? Thanks.

Facebook Like

Hello I'm posting this question which appears not to have been answered before. Is it possible to create a Like button in a mobile application, maybe with the OpenGraph protocol? The Titanium SDK documentation has a few good examples on how to create an...

Adding image to button on android action bar

Hi, I was wondering if there was a way to add an image to a button on the action bar. Currently I have tried background Image and Image but none of them seem to work. Any Ideas? This is the code that i used to craete a button on the action bar: ~~~ var...

TouchEnabled does not disable

Hello, I have just upgraded to Titanium 3.3 and noticed that enabled is now deprecated. I previously was using enabled for a pair of buttons to create a pagination effect. When a button was disabled it would grey out and the user would be unable to click...

Fatal signal 11

Okay so I have known about this error in my app for months, and I am now spending probably way to much time trying to fix it. ~~~ Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 24961 (KrollRuntimeThr) ~~~ The crash occurs when I am dynamically...

Showing 1-50 of 992 1 2 3 4 5 620