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

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

Is it possible to force a webView to don't reload ?

Hi everybody, I have a question about webViews : My app has 3 tabs, in one of them, there is a webview which load an audio player in javascript (with html5), it works, and I can change tab, the music...

View Article


Android - Adding or modifying view height refocuses and scrolls last focused...

I have multiple lines of textfields and switches, there is one switch that, when activated, adds another field at the bottom. When this happens, the last textfield to be focused gets focused again and...

View Article

No effect on setting height and width for Ti.UI.Switch control

I created a new alloy project (1.5.1) and added a switch control. Why does the height and width have no effect on the switch no matter what size i give?. It just sticks to a definite size. Trying to do...

View Article


Exclude value="false" switches from Array

I am having trouble finding the correct way to exclude switch result that is set to value="false" from Array resultvar checkedlocation = []; for(var i = 0, j = FIELDS.length; i< j; i++){...

View Article

CheckBox Uncheck

Hi All, i am developing an android app using titanium studio, in that i am selecting multiple rows using checkbox when i click on reset button that selected items must be unchecked how it is possible...

View Article


Get all Switches in a view

How am I able to get all the switches in a view when using Alloy?

View Article

Dynamic id on switch not working

I am currently trying to use a dynamic id but I an unable to use it in my code. Currently I set the id using an incremental for loop with a prefix. So the id's are "check_1", "check_2" ect.. How do I...

View Article

Get Switch Value inside ListItem

How do you get the value of a Switch when it is inside a List Item? Currently I can get the list item using:$.listview.sections[0].items[j] But a ListItem does not have a children attribute or anything...

View Article
Browsing latest articles
Browse All 28 View Live


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