Community Questions & Answers
'swipe' of tableview fired, but row/index properties are missing
os:mac os platform:android sdk:3.0.2.GA `swipe` is fired, but properties as `e.row`,`e.index` are missing in the event. but in the document, it says `swipe` event of the tableview has row/index...
Tableview swipe to delete
Hi guys, I know that in tableview view, if i set the editable to be true, i can swipe the row i want to delete and the delete button will appear. But now, I want to know if I can add other button when i swipe? For example, when i swipe the row, instead...
Prevent click from triggering after swipe has been triggered
I'm trying to show a view after a user has swiped on the screen, that works. The problem however is, that the click event is also triggered after the swipe has occured, causing another action to occur (in my case opening a window which shouldn't happen...
Swipe one row and open a page!
Hi! I'd like to know if it is possible to do a thing like this: [Press here please](http://www.riverstonelabs.com/android-swipe-contacts). In few words, when i swipe the row i want two things: 1) a new row swipes/scrolls on the first row 2) open a page I...
Alloy + Swipe + WebView problem
So my problem is that, if I have a swipe event attached to my container where I put a webview, the nonscrollable part of the webview will not work. Here is the code for testing: 1 - Compile to iOS simulator 2 - Try to click sign up yellow button (it...
iPad Swipe up listener
Hi all, How to make if the user swipe up to open a window, and in the new window swipe down to close?
Swipe events on tableviewrow
Hi all, I have a tableviewrow (iPad) inside a scrollableView. And i have the tableviewrow touchEnabled : false,. How to make the listeners when the user swipe down or up to change the row?
Delete Tableview Row on swipe.
Hi, I want to delete a row from table when it is swiped in iOS application. The swipe event fires but I can't the swiped row's data. I am using Ti sdk 2.1.3. Here is my code for the swipe listener: ~~~~ var win = Ti.UI.createWindow() var tableview =...
How to make Smooth Animation/Inteface for swipe in titanium
How can we make a smooth animation for swipe on table view row or some other view, which can work like charm as shown in the below url using titanium? [http://www.youtube.com/watch?v=CICMxwgm274](http://www.youtube.com/watch?v=CICMxwgm274) Thanks in advance
Android: Swipe event in WebView
Hi, We are trying to handle the swipe event in WebView, but the event is not getting triggered. ~~~ var currentWindow = Ti.UI.createWindow({ exitOnClose : true }); var webview = Ti.UI.createWebView({ url :...
Animate causing app to crash
For some reason, this section of code is causing my app to crash, which is triggered when the user swipes the screen to the left: $.toolbar.animate({ right: 0, duration: 500 }); $.mainMenu.animate({ left: -100, duration:...
Android: Swipe event-listener causes scrollView not to fluidly scroll up / down.
I have a swipe event listener on my `main` window, this event has the following code: ~~~ if (e.direction === 'up' || e.direction === 'down') return true; if (e.direction === 'right' && $this.animated)...
[iOS] Problem with event on scrollableView
Hello to all guys. I have a little problem with the event of a scrollableView. I used the following code ~~~ scrollableViewAmbiente.addEventListener('swipe',function(e){ Ti.API.info(e); scrollableViewAmbiente.scrollingEnabled =...
Cancel User swipe/touchmove
Hey! Is there a way to cancel a user event like swipe or touchmove? I want to cancel a swipe gesture after it reaches a certain point. ~~~ var view1 = Ti.UI.createView(); var view2 = Ti.UI.createView({backgroundColor:'#123'}); var view3 =...
TableViewRow Swipe -> How do I obtain the title inserted via the tableData array?
I appreciate any help possible. I've never had much way with understanding how to 'traverse' (correct term?) to obtain certain values. I ALL CAPS'd down in the code section where my problem is... I can't figure out how to get the value where that bold...
Event on touch over
Exists some event that is executed by passing the finger over an object? (on iphone) Example: I have two objects A and B I tap over the object A. Without raise up the finger, move it above the object B. At this time I can detect this event?. I've tried...
ScrollableView on Android stops scrolling if you do not swipe/scroll in a straight line
Hi Everyone, On Android there seems to be an issue with the ScrollableView if you do not swipe/scroll in a perfect horizontal line. Using the sample code from the latest documentation, run the code on iPhone, you will notice that the scrollableview will...
swipe operation on table rows, Not working properly .. i want to implement this as pocket ipad app
~~~~ var row=Ti.UI.createTableViewRow({ height:112, backgroundImage:"/images/events/1.png", selectedBackgroundImage:"transparent" }) var...
Need a PullTab like Feature for Scrollableview
I have a simple need - develop a Scrollableview that contains to two subviews, the leftmost subview contains a photo, the rightmost view contains text entry fields that allows a user to enter tag information regarding the photo. I want to add a simple...
Physics savvy scripters: Need help figuring out how to flick a ball
I have the dragging figured out but I need to have the user fling a ball using a finger swipe. I tried subtracting the x and y of the touchMoved from the touchEnd and using that as my velocity but it's not really working very well. Here is an excerpt of...
swipe event doesn't work on Android
My app is consist from window,view, label(label puts on view and view puts on window). I add swipe event on view. swipe event works correct on iOS, but on Android, swipe event doesn't work. I also add swipe event on view and window, but result is...
Capture a swipe up gesture only if it has been done over the entire screen?
Hi, I am trying to make an app that captures a specific swipe movement, and it's over a complete area let's say the whole screen... For example a swipe that starts from bottom and ends to the end of the upper part and to drop partial swipes if they weren't...
Problem with swipe on tableviewrow (becaus a row have a slider)
Hello to all you guys! Let me explain my problem I have a tableview, to which I have assigned the event Swype (right) to open a side window, with the inside row. The problem is that one of these row has built a slider, and when I change the value of the...
Error in some code for swipe detection
Hi, I try to use some code from here: [appcelerator.com/[...]/swipe-fires-multiple-times](http://developer.appcelerator.com/question/7261/swipe-fires-multiple-times#answer-213738). Github [here](https://gist.github.com/1094727) For some reason I get an...
Swipe event and orientation - inconsistent?
Hi all, I have a swipe event listener on a window that contains some small header elements (views) and then a webview, which takes up the majority of the window. This is an article viewer application, and a swipe left or right displays the next or...
How to achieve this iPlayer animation effect in TableView (iOS)?
Hi, Using the latest iPlayer update, I really like their swipe to view on a tableRow animation technique. In my app, when you click on a tableRow, it slides all the way to the left and is replaced with a row that slides in from the left. Looks cool, but...
Swipe event Problem
Hi, I'm trying on iOS to create tableView with deleted albums from my apps and I added a swipe event to show a restore button. The problem is that when there is only one row it works perfectly but when I have more than one row the button shows up only in...
Swipeing rows in a tableview
Hey all, I am working on an app the has a tableview based off the example MasterView, DetailView that appcelerator provides. I am trying to make a swipe event on each individual row that just slides the contents of that row over to the left. There are...
Swipe gesture disables WebView
Is it really not possible to have swipe gesture on Webview or Window itself. (for going back in WebView)? I tried adding one (on iOS) and it disables my Webview (can't click/tap on anything) ! Using Titanium SDK 2.1.3 with iOS SDK 6.0 Thanks
Scrollableview on ipad 3
Hi everyone, I just test scrollableview (fullscreen 1024x768) on IPAD 3, but unfortunatly, the "swipe trigger" is very very short ! On ipad or ipad 2, you have to swipe something like to the middle of the screen in order to change view. On ipad...
Animation during Tableview Swipe gesture
Hi, I need to create some kinda animation like drag left to right or push animations in a table view's swipe gesture. `scenario:` Inside the tableview's event listener for `swipe` webservice will be called and tableview data will be updated. Currently an...
sliding features in paintview in titanium?
Hi, i want to apply sliding features in paint-view live image view in photo app in i pad means i draw something in paint-view and when i slide it left to right it it shows another image for drawing . I have tried below method. when i swipe the view the...
Trying to add "swipe to reveal"
Hi, I'm trying to add the swipe functionality to a TableView on my app so I can show some options each time you swipe on a row. Like twitter. Here is the code: ~~~ var win = Ti.UI.createWindow(); var lorem = 'Lorem ipsum dolor sit amet, consectetur...
Twitter-like swipe on tableview
Ok, so I have been trying to do this various different ways for months now, and I think it's time I ask for help. What I'm trying to do is set a tableview row to be "swipable" so that when you swipe it it displays a view underneath it with...
Need to move view by increments using swipe - NOT working
Trying to move a view with a swipe but it only works the first time. I would like to move the view in increments by 50 either LEFT or RIGHT on each swipe. ~~~ w = Titanium.UI.currentWindow; gallery = Titanium.UI.createView({ backgroundColor:'red', ...
swipes gestures
is there any way I can trigger an animation when the screen is swiped from bottom 10px upwards for 200px? are there any examples of how to handle swipes?
Vertical Swipe To Navigate
I am developing an application for iOS and I want to add gestures to my app. I want to be able to swipe and have each of the 4 directions open a different window. While the user is performing the swipe, they should see the transition of one window moving...
How do I make a Swipe / Slide from left or right effect / animate using tabs?
Hey guys, here is the thing, I want to make a Swipe / Slide from left and right effect similar to the ones in Tweetdeck or Launcher Pro, obviously I don't expect something as professional as that, but something similar, I researched it quite a lot, and...
ScrollView setPagingEnabled?
Is it possible to make a large scrollview with the option from xcode: 'setPagingEnabled' So it will snap to the given size wel swipeing? Thanks already
Mapview swipe event?
Hello, I am trying to catch a swipe event on my mapview but it never seems to be fired. I have tried this both on the emulator and iPhone. Here's a sample code. `tt.ui.mapView = Ti.Map.createView({ mapType : Titanium.Map.STANDARD_TYPE, animate :...
Get the index of tableview row on Swipe event
Hi, I have searched and tried a lot but could not find any way to find the index of the row swiped in a tableview. Basically i need something like 'e.index' present in the click event of tableview. Can someone please help me with this? Thanks in advance :)
createScrollableView addition of click event more sensitive and overiding the swipe
Reusing a code snippet which I have previously used in an earlier project and now the ScrollableView when testing on Iphone4 and Ipad retina seems to trigger the click immediately when im trying to scroll through the slides rather than go through to that...
Problem with swipe functionality on Table View Row
I want to hide rows when when the user finger swipes. Since support for swipe in Android isn't there in Titanium SDK 2.0.1.GA2, I'm creating one in my code. [This...
Detect which TableViewRow has been swiped
I have a dynamically generated TableView and want to be able to swipe the row to pull up extra options that will be specific to that row. TableViewRows don't seem to be able to receive swipe events, and while TableViews do i can't find out how to...
Swipe event/gesture doesn't work on android
Hi, with this simple snippet I want to build a day switcher: ~~~ container.addEventListener('swipe', function(_e) { var diff = (_e.direction == 'left') ? 1 : -1; var datetext = date.add('days', diff).format('DD.MM.YYYY'); /* Changing of calendar text: ...
Android window detect swipe
Hi I'm not sure if this is even possible but I'm trying to come up with a way for the window to detect a swipe event *regardless* of what else is loaded in the window. I've been able to get it to work when it's just the window, but when I add a table into...
Delete Button Title in API Docs? + Feedback
I had a hard time finding how to change the delete button text when a row is swiped. Finally found this answer that does the trick. ~~~ var tableView = Titanium.UI.createTableView({ data: someData, editable: true, deleteButtonTitle:...
swipe not always detected
hi all i work on ipad application. i want to animate my view 250px to the left on detecting swipe direction my code is ~~~ view.addEventListener('swipe', function(e) { //alert(e.direction); if (e.direction=="left"){ ...
Swipe between navigation screens?
I have an iPad tab group and, within it, the first window displayed I have a button that opens the built-in navigation group for that window: ~~~ btnSimpleBegin.addEventListener('click', function() { tabGroup.activeTab.open(winSimpleCalc, { animated :...
Event Listener Not Returning Updated Row Object
I'm planning to use `updateRow()` to display buttons to the user having to do with that row when they swipe left. I also want them to able to swipe right on the updated row to return the row to its original state by passing the original row's object in a...