Community Questions & Answers
How to detect scrolling direction of a tableview?
Hello, I am trying to let the navbar slide up when scrolling a tableview down and have it slide down again when scrolling up. This is my code and it kind of works. Except for two things. Is there a better way of detecting what direction the table is...
How to remove scrollTo animation?
I want to scroll to a specific point in a scrollView but without the animation. I tried to change contentOffset instead of scrollTo but it also animates to that point. Anyone an idea how I can change this?
Android webview - pinch to zoom works only after a scroll occurs
Hi all, i have a strange behaviour when using webviews in Android. My purpose is to manage pinch-to-zoom gesture for images, so i chose a webview to do id. Everything works perfectly but only after a scroll. Il try to explain: when the webview is loaded...
Scroll to a specified contentoffset with TableView
In Titanium, can we scroll a TableView (or ListView) to a specified position, not the position of a row, like with ScrollView? To my searching, it seems the answer is no, but is there any workaround?
webview without scroll
Any way to prevent any scrolling within webview. I have an html page that is sized perfect; however, you are still able to scroll just a bit up and down (before it bounces back into place). Any thoughts?
Can't scroll to last row in tableview when generated from remote json.
I'm grabbing a remote json file and using it to build a simple table view. Each row contains a thumbnail image and a short line of text. There are about 25 rows, and when I scroll down, I can't scroll past the second to last row. If I switch tabs and...
Allow scrolling of scrollable view when it is bouncing
Hi, I have a scrollable view (Titanium.UI.createScrollableView) in my application which can scroll both vertically and horizontally. When an user scrolls up or down of a view, the same view bounces while when the user scrolls left or right, we go to the...
Skip to page in PDF embedded within app?
We have a PDF we'd like to display within our app (either in a webview or document viewer), but we'd like to have a button for "jump to page 7". I don't see anything in documentViewer or the webview that seems to allow for any kind of scrollToXY...
Disable ListView scroll
Is there a way to disable listview scroll both on iOS and Android? Using tableviews it would be scrollabe=false; ps: I know I can add a view on top of that with opacity 0, but this would remove the listener from the items also, and it's pretty bad to do.
Scrollview auto scroll
Just curious is it possible to make the scrollview auto scroll every couple seconds? Also once it gets to the end to return to the 1st view.
How to Control the scroll of ScrollableView ?
Hi I have added a scrollableview to my code, but when i scroll to down and arrive to the down of the scrollview, i still can scroll it up for and i can see the under of scrollableview; besides, for top side after the paged is scrolled on the toppest...
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)...
Auto scroll Ti.UI.createScrollView animation until the end...?
Hey ;) Does anybody know how to make a ScrollView scroll automatically to the end of content and back to top slowly? Let's say 5 seconds till the end and 3 to the top?! But if the users is scrolling manually the ScrollView, that animation should stop for...
How to implement image slider for android?
Hi. i have been creating an image slider for android, but i am not achieving what i wanted. i am doing this- 1.) Creating an array of image views (like this) ~~~ var viewArr = []; for(var j=0;j<path.length;j++){ var imgv =...
Scroll to top on statusbar tab (iPhone)
Hi I'm wondering if I can decide which tableView should be scrolled to top when the user clicks on the statusbar on the iPhone. Sometimes I only have one tableView and it doesn't work either... Thanks! Felix
flip a window
i want to have a bunch of images which i can scroll though like in the scroll view file but i want to click on one of the photos and be able to display text about the image on the back. how can i flip the photo? please help!!!
[BUG] TableView is missing x,y coordinates from scroll event
I need to access the scroll position to do a footer pull to load more, however, the x and y coordinates are not provided in the event object like it states in the...
scrollView on android horizontalScroll on titanium 2.1.4
Hi, I have a scrollView which scrolls horizontally, my app was turning on titanium 2.1.2 on android and it worked fine but since i changed to 2.1.4..my scroll doesn't sroll. here is my code : ~~~~~ var scrollAlbums = Ti.UI.createScrollView({ bottom:...
end of scrollView
Hi, i want to know when im on the bottom of a scrollView, i found this code : ~~~~~~ mediasScroll.addEventListener('scroll', function(e){ var offset = e.contentOffset.y; var height = e.size.height; var total = offset + height; var theEnd =...
ScrollableView scroll tranasition - how can I make this more fluid?
Hi Guys, I have a nicely working app, although I'm trying to fine tune the ScrollableView transition. I have quite a few views and it seems this can make the view transition clunky. Especially when using retina images I have found this becomes jagged...
Is there an option to disable scrolling in a tableView for Android?
Is there already an solution to disable the scrolling in a tableView for android? In iOS we can use `scrollable: false` but for Android I couldn't find any solution. There are somequestions about this, but most of them are old [question...
Problems with dragEnd and scrollEnd events on Android
Hello, I have an app that contains a scrollableView with an array of views. I use a simple scroll event handler to capture user swiping action and display the next view after doing some processing. I recently upgraded my Android app from sdk 1.8.2 to sdk...
Android TableView with custom rows: scrolling with list longer than screen causes problems
I'm not sure if this is a bug or something I'm missing. I have a simple TableView with several custom rows. By custom rows I mean I create a TableViewRow object and add a few views to it, instead of just providing a dictionary containing title and some...
scrollableView scroll
Hi, i have a scrollableView named mediasScroll. i have this eventListener : ~~~~~ mediasScroll.addEventListener('scroll', function(e){ Ti.API.info('page : ' + e.currentPage); }); ~~~~~ i see that this message is displayed many times !!! is it normal...
Pull to refresh of tableview in the kitchen sink doesn't work
titanium:2.1.1 os:mac platform: iphone simulator 5.1 when i'm learning the kitchen sink example, i found it doesn't work, it never reloads the data, following is the kitchen sink table_view_pull_to_refresh code, the reason may because when i release...
Scroll for window?
Hi, How do you get the window to allow scrolling when the height:auto exceeds the window height? Details... Working from Kitchen Sink... I've created a vertical layout window. And have added labels with long amounts of text to bodyView1 with...
How to open table view in the middle of the list?
I have a large table view with calendar events in it, sorted by date, that is dispalyed in a modal window that pops up. Is it possible to open the table view halfway down the list, displaying the event nearest to today's date (say for instance the events...
ScrollView: scroll to bottom
Hi everybody, I have a ScrollView in my iPad App with lots of content and a Button, if I click on the bottom I want the scrollView to scroll to bottom. can anybody tell me if this is possible? Thanks
Some windows has a scroll mecanic, some don't. Why is this???
Hi. Does anyone know why some windows doesn't not allow scrolling? And some do? I have not created any scroll-mechanims myself, i just see that some of my windows allows scroll and some don't. And i can't figure out why... Window that allow...
Explain ScrollView values....
First, let me explain what I am trying to do. I have a US map which I have put in a scrollView. I want the user to be able to zoom in on the map, so I have made the map rather large (approx 3000x1700px). I have set the scrollview with this code: ~~~ var...
contentOffset is undefined in tableview's scroll event
I am having a problem in events **scroll** and **scrollEnd** of TableView that the **e.contentOffset** is undefined. I am new to Titanium and learning through the book Titanium Smartphone App Development Cookbook. I know I must have missed something so...
Scroll option available for Titanium.UI.createView?
Hi, I just want to know whether we are able to use a scroll property for a view. I don't want to use scrollview component here. Please advice
Detect that we reach the bottom of a view? (scroll)
Hi, Is there a way to detect that the user has reach the bottom of a view? I would like to fire an event (load more entries) when the bottom has been reach, like the Google Reader is doing. Let say we have a TableView with many TableViewRows,...
TableView (or scrollView?) Chat-Like Set To Bottom
Hey Guys, I'm hoping this is easier than I think and I'm just missing it... but figured I'd check and see if anyone had any input before I rip my hair out. What I'm looking to do is build a chat-like application (currently on iPhone). I currently am...
Track scrolling on tableview
Hi, I wonder if it is possible to track the contentOffset.y when scrolling ? I've tried the event 'scroll' but it only fire when the user have a finger on the screen. When the user swipe down on screen, and take off his finger, the tableview continue to...
Scroll in tableview
Hi ! Is there anyway to add scrollview in a tableview ? In the emulator I can scroll with the mouse's scroller but I can't do it on my device... Thanks
Mobileweb TableView scroll doesn't seem to work across all devices
Hi, On the app I'm developing we have a long tableview which doesn't scroll on the Xperia Arc nor on Firefox. It does scrolls on Safari and Chrome though. Fro example the below code doesn't work on Firefox. Tested with SDK 2.1.0.v20120504170331. Is there...
Disable scrolling in a WebView?
Is there a way to disable scrolling within a webView? reason being I have a webview in a scrollView (along with other elements above and below the webview) and I want the webView to be static and not scroll as I already have the scrollView that is taking...
webView event keep default behavior
Hello, I'm developping an android apps with a WebView which contains a HTML document(a map). But I want to know when the scrollX and scrollY have change ! So I use the "touchstart" event but I want to keep the default behaviour AND show an alert...
Tap status bar to scroll to top not working in my app anymore under 2.0 for me - any pointers what to look at?
q: iOS / SDK 2.0.1 - Tap the status bar to scroll tableview to top stopped working in my app. It works under 1.8.2, so wondering if anyone would have any tips what i should look at. see nothing in the migration guide about any changes affecting that....
Scroll Event on TableView (Android)
Is there a way to use the scroll event of TableView on Android ? I can't get any information about the offset .. e.x and e.y are empty .. So how can i know if it scrolls to top or bottom ?
how to disable scroll table view in android
i don't know how to disable scroll table view. i try many way, but can not. ~~~ var main_menu = Ti.UI.createTableView({ borderRadius :2, borderWidthL 2, borderColor: '#767676', left: 5, right; 5, focusable:fasle }); ~~~ The table view has two rows
How to make page showing in webView scroll back to the top?
I have a HTML page which contain a textbox and is displayed using WebView. When the textbox is in focus, iPad keyboard show up and the whole page is shifted upward. After keyboard is hidden, it do not return to the original position, and the whole HTML...
slide up window
I was wondering how to slide a window up from the bottom. Kind of how the notifications work in the facebook app. You click 'Notifications' on the bottom of the device and it scrolls up
images on tableViewRow lead an unsmooth flow.
I got 3 local picture and 1 from the internet in my tableViewRow,all be showed in view by giving the backgroundImage property. but this makes the tableView hard to scroll. Because it takes a lot of time to got a image. Any solutions?
scroll tableview to bottom!
I have a tableview in which whenever I add a row, the scroll should accompany it. Go down. I tried this: ~~~ var row =...
Disable scrolling for a desktop app in a window
Hi, I'm trying to create a desktop app in mac os X. I created a window with some content, it works great. But, I need to disallow the global scrolling on this view. I make the content fit into the window, but Mac OS X (Lion) allow me to scroll the whole...
tableview row not rendered
Hello, I have a tableView containing 2 rows, the first row has an height of 400px and the second row is not visible if not scrolled because positioned on bottom. When the app start, an xhr request is opened and the first and second rows are populated with...
Alphabetical scroll bar
Does anyone know how to create an alphabetical scroll bar on the right side of a TableView on the iphone (and possibly android) like what is on the iphone's contacts screen?
iOS webview won't scroll down
I am making a system similar to Silverlight's Deep Zoom, in which a very high resolution image is broken into chunks at varying resolutions to allow the impression of scaling from the image filling the screen, to a very detailed portion at any given point....