Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (switch)
Browsing all 28 articles
Browse latest View live

Prevent firing of change event when switch value is modified programmatically

Hi everyone, I have a simple (?) question, for those who can help. I am writing an iPhone home automation app, that talks through sockets to a simple TCP/IP server. I'm using Titanium SDK 1.6 and iOS...

View Article



When Ti.UI.Switch will fire the 'click' event. TIMOB-3297

What is the state of issue https://jira.appcelerator.org/browse/TIMOB-3297. I relly need a clickable Ti.UI.Switch on iOS. My case is as follows: i have a tableView. Each row of this tableView contains...

View Article

How to add the photogallery within the photo capturing screen

so the idea is to access the iphones camera and take a picture. here is the code i wrote and it works ˜˜˜ function takePicture(x){ Ti.Media.showCamera({ succes:function(e){ if(e.mediaType ===...

View Article

UI.Switch - Prevent Animating to On State on Load

I've got a switch in Alloy, I don't give it an initial value. In my controller, I set its initial value based on user's preferences from a collection. It always animates from off to on. I've seen...

View Article

Share via Facebook and Twitter without confirmation popup.

Hi guys! I use this module on my project. I have three Ti.Ui.Switch on a screen. If I checked them all and press button, I should share (same text and image) via Facebook and Twitter. The most...

View Article


Puting switches in a tableview

Hi! I am trying to create a search app where the user has a bunch of switch type controls where he makes the selections he wants and then pushes a button to do the search. I am trying to create the...

View Article

Switch on tableview rows. Exclusively for android

I have 5 rows in a tableview and each one has a switch at the end. At a time only one switch can be activated. The user can toggle between the rows but once one switch is 'YES' all others have to be...

View Article

Table row align switch

Right now I have text on the left of a table and a switch on the right. The text is aligned on the left and in the middle of the table (height wise) but the switch is on the bottom right. var row4 =...

View Article


Switch changes state when rendered (to late)

My iOS example: I placed a Ti.UI.Switch in every table row of a table. If the state is set to "ON", the switch changes it state to "ON" with an animation as soon it gets rendered (scrolls into the...

View Article


Android Switch Value Setting causing application fail

I have been tracking this one down for a couple of days and finally have a very simple use case the fails on my Galaxy S4, the Genymotion S4 emulator and my Nexus 7, so I would like to know if anyone...

View Article

Alloy ListView with Switch in template

I have a simple ListView using Alloy xml. It contains a switch (checkbox) and a label. How can i get all the items the user has marked (or the underlying data-index or something else) ? I am using...

View Article

Switch databinding does not work

I wanna set a switch value by databinding, unfortunately this does not work as expected. Please checkout my view below <Alloy> <Window> <TableView id="table" dataCollection="heroes"...

View Article

TableView Switch

Hello, i have a tableView with different numbers of rows. One Row contains an imageView, a Label and a Switch. Now i need to get the text value of the Label in the same row if the switch changes....

View Article


How to switch Tab with animation?

Hi, Im new to Titanium and have a question. How to switch Tab with animation? My situation is; TabGroup is hidden. got a button to change tab by adding event. the eventListener of the button is like...

View Article

Android 4.0+ Switch how to use new Switch style

Hello, I can't create a 4.0+ holo theme Switch with Titanium. I have googled a lot but find no solution which work for me for example...

View Article


Ti.Ui.Switch iOS7 color

Applies to iOS7/Titanium SDK 3.1.3.GA In iOS7 it's possible to change the colours of the UISwitch with the properties onTintColor, tintColor and thumbTintColor: UISwitch Class Reference At the time of...

View Article

Image may be NSFW.
Clik here to view.

Create android switch button

Can I create android 4.0 switch button (not checkbox or toggle button) with Titanium? example of on/off switch thanks,

View Article


Help in creating survey mobile application

Hi, I'm trying to create an application for users to take part in a survey with the use of an SQL databse. So far I have created the code to give me the value of a TextField of one of the questions...

View Article

Displaying the number of selected checkbox in action bar

Hey guys, I could not find any documentation and example on how to display the number of selected checkbox in action bar. Context: Under the Contextual Action Bar section Patterns of Action Bar in...

View Article

Unsubscribe from UrbanAirship Push Notifications

Hi, I am using Titanium SDK 3.3.0 GA an the ti.urbanairship module from github. I am building for both Android and iOS and everything works perfectly for the moment. I want to add a switch to disable...

View Article
Browsing all 28 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>