Community Questions & Answers
Scroll map automatic
I saw an app in a map that when I would select a country to go, for example I'm in the U.S., and selected the Brazil, it scrolls the map up to Brazil, even in animated form, sliding to the parents that I selected. And do not just play the position. I...
Memory Management
Hello, I have created an app that simulates a decision tree. When one section is chosen, its children are then loaded into the view. The app creates new views to display on each selection and then destroys the previous views no longer needed. My...
Keyboard move scrollview slightly left
Hello, I'm pretty new to titanium and am having a problem with the keyboard moving my scrollview left. I'm using Titanium 3.1 and am focusing on IOS and Android. I have a scrollview that I have set the contentWidth and width values to 100%. I have also...
How do I lock a scrollview so that the scrollview can only scroll vertically?
How do I lock a scrollview so that the scrollview can only scroll vertically?
Perform Animation within scrollview:scroll event
Hello, I'm pretty new to Titanium and I seem to be stuck on how to achieve a certain effect. A little history. I'm building an App for both Android and IOS but am focusing on IOS first. I'm using Titanium 3.1. Ok, now to my roadblock. I have a...
Yes... another TableView in ScrollView question
Are there any suggestions for getting a tableView to be scrollable within a scrollView? I've tried setting canCanelEvents on the parent scrollView but then that causes issues with not being able to scroll at all if you happened to try to scroll up while...
View repositioning after WebView load event
Hi, I have a scroll view (as a master container) for dynamically changing content.. The problem is; I have to put a View right after a WebView. But i couldn't manage to reposition the View after WebView is loaded (and resized) Any help is...
TableView inside a ScrollView
I'm trying to write a chat window, similar to WhatsApp's chat. For that, I initially wanted to put a bug ScrollView, and in it two elements: a TableView for all the chat bubbles (90% height for example), and a view for the TextField/SendButton (10% height...
TableView in Scrollview doesn't scroll (Android).
Hi, I have a problem (under Android) I have to put a tableView inside a scrollView. The problem is that it doesn't allow me to scull the tableView. here's the code : ~~~ bgView = Ti.UI.createScrollView({ contentWidth: 'auto', contentHeight:...
TABLEVIEW INSIDE SCROLLVIEW
Hi everyone...!!! I have got a small problem which seems to become really big coz i can't find any solution to that.. Please help me with that one.. I have got a tableview of fixed height lets say of '200' inside a scrollview, the problem is that I'm not...
TableView inside ScrollView won't scroll on Android
I'm trying to achieve a "Pull to refresh" functionality on Android but having little luck. I've looked at the GIT suggested in other threads ([http://gist.github.com/903895](http://gist.github.com/903895)) but it's got the same problem that I'm...
ScrollView contentHeight coming up undefined
I have scroll view and I want it to resize as elements get added. I set contentHeight: 'auto' and that kind of works, but I want extra padding at the bottom. I tried setting contentHeight dynamically as elements get added, but contentHeight property is...
scrollView height 100% - 50px
Hi, i make a header with a height of 50px, and under this header i have to put a scrollView with the rest of the window height. How can i calculate this height? because i use Ti.Platform.displayCaps.platformHeight but this height includes the android...
Disable vertical scroll on a bi-directional scrollview
I have a bi-directional scrollview working on a Landscape mode, on orientation switch, i need to disable the vertical scroll. How do you prevent the scrollview from moving vertically? Thanks Daniel
Use the proximity detection to scroll in a scroll view / table view
Hello gurus, is there any possibility to use the proximity detection to scroll into a scroll view or a scrollable table view? the user have to pass his hand in front of the detector then the view scroll down for example. I'm using the 3.0.1 Ti SDK and...
Perfromance issue question regarding scroll view and table view in a scrollable view.
The set up --------------- I am developing a horizontal news feed using the scrollable view. In each view, there is a background image that can be scrolled horizontally in a scroll view. Additionally, overlaying the image is a table view with about a max...
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?
How to disable the ScrollView animation when calling the method scrollToBottom? (Iphone)
Hi all, I'm reading the API but can't find a property to disable the animation when making the scrollview scroll to bottom (i want the scrollview to the bottom without showing the scroll movement). Is there any way to achieve this in iOS? Thanks in...
Scroll bug?
This code tries to display a set of rows in an area with scroll vertically. ~~~ //Create some data var rows = []; for (var n = 1; n < 50; n++) { rows.push(Ti.UI.createTableViewRow({ title : n, height : 'auto' })); } //Create the...
Uncaughr typeerror: cannot call mathod replace of null
i am new in titanium and developing my first titanium app when i run it using my android device runtime error occures.. Location: [34760]ti:/window.js Message:Uncaughr typeerror: cannot call mathod replace of null Source:...
ScrollView Dynamic Loading
I am trying to duplicate the Pinterest style scrollview. It has dynamic loading which is ideal if you need to load hundreds or thousands of pictures. I have a good grasp of it but I am running into performance issues. The scrollview interface becomes...
Table View or Scroll View inside a scroll view
Can't we have scroll view or table view inside a scroll view... i tried but the inner scroll view or table view wont scroll.. can anybody help me on this. Thank You
Detect ScrollView contentSize on Android
I need to add content to a ScrollView when the scroll is in order on android. I try to capture it with e.contentSize.height does not work. What is the solution?
How to prevent vertical bounce in a horizontal scrollview?
Hi all, I'm facing a rather peculiar problem and I hope someone can help me out here. I have a scrollview within which I have some views that are scrollable horizontally. Since I require these views and the scrollview to resize within the page based on...
ScollableView, is this possible ?
Hi! I'd like to create this: ~~~ scrollableView.addEventListener('scroll', function(e){ scrollableView.movePrevious(); if (row2.left < (Titanium.Platform.displayCaps.platformWidth) / 2) { Ti.Android.currentActivity.startActivity(intent); ...
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...
scrolling multiple views at different speeds
Hello everyone, I'm attempting to make an effect where background scrollViews will scroll at different speeds than a foreground scroll view. The foreground scrollview is the only one which the user will interact with, but I'd like the background...
Long vertical scrollview performance problem
Hi guys, I'm having serious trouble with scrollview performance and wondering if someone has experience on this can share his strategic solutions. I am developing a pinterest-like app with 2-column scrollview which is the container for a large number of...
Create List/Tableview
I'm new to Titanium and am just wondering what the best way would be to achieve something like this:  I tried a function something like this, however I would want to have the text overlay the row backgrounds....
ScrollableView in ScrollVIew is not working
I found that the if scrollableView(horizontal) is added inside the scrollView (Vertical), all of the scroll event will be captured by the scrollView. Could i disable the scroll event of scrollView when i scrolling the scrollableView? ~~~ var...
MapView Inside a ScrollView
Essentially, I building an app, that has a page with a small map view in it, and a list of stores, I need to be able to scroll the entire page, so I must create a scrollview, when I wrap everything in a scrollview though, i cannot pan north and south on...
How to position a footer at bottom of a scrollView OR screen depending on the size of the content
I want to have a footer, which behaves as follows: (1) When the scrollView.height is larger than the screen height, the footer should be positioned end of the scrollView. (2) When the scrollView.height is smaller than the screen, the footer should be...
Add toolbar in touchevent window
I currently have a window that has opened from a touch event in the app.js which is a scrollable gallery but for some reason the toolbar that I want is not showing up on the bottom of the windows. I am coding for ios and using the latest sdks and...
contentOffset for scrollView with Alloy
Hi, I want to get the current offset of scrollView in alloy. the id of my scrollView is : offresScrollView so i write : ~~~~~ $.offresScrollView.contentOffset.x ~~~~~ but contentOffset is undefined... bizzarely, in scroll event : ~~~~~ function...
Scrollview lag while adding new views on ios
Hello My view structure is basicly like that ~~~ <scrollview> <view> <subview> </subview> ... 18 .. <subview> </subview> </view> </scrollview> ~~~ When user scrolls to bottom, i make a http...
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.
Device orientation does not reflect scrollview content resizing.
I have scrollview resize problem when device orientation changed. Check the code which I use for scrollView and orientation: function CreateLibraryControl(){ var libraryView = Titanium.UI.createWindow(root.combine($$.flexibleWindow, { title:...
Need Help: TableViewRow +TextField + TabelView
Hi Dudes, i got a problem with this part of code :( If i click on the TextField the View scroll automatically on the life side. Any Idea? :( ~~~ var view = Ti.UI.createView({ height : 'auto', }); var scrollView =...
Why ScrollView doesn't work?
i have view and tableview in scrollview and I want to scroll my view but it works seperatly. why it scrolls only table not view. when i try to scroll this View it does't move but if i try to scroll TableView only TableView scrolled ...
scrollView stopped scrolling after View added above it.
I just tried to update one of my apps by adding advertisements to the top of each page. So before I just had one scrollView on the page. Now there is a View (ads) at the top and then below that is the original scrollView. All I did was move the scrollView...
How can I know if the scroll view reach bottom when scrolling ?
I'm trying to add a function to refresh mt screen and the scrollView reach his bottom but I can't find a way to do that... I have tried this: ~~~ scrollView.addEventListener( 'scrollend', function(){ alert( 'end' ) } ) ~~~ but don't matter if are on...
Zoom
I want to simply zoom in and zoom out the image. how to imply this?
Screenshot to gallery in Android
Hi there. I have read some post about the topic, where it seemed that you could use toBlob() instead of toImage, in android, but i haven´t figured it out. Here my thing, I have made a view into a scrollview and it can take screenshot of the whole screen...
Pinch to zoom in Android
Hi, I am trying to implement pinch to zoom in Android using ImageView. Following in the code which seems to be working with certain issue: ~~~ var lastScaleValue = 1; var win = Titanium.UI.createWindow({ exitOnClose : true, navBarHidden :...
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...
show more images when scroll down
Hey Guys.. i'm getting images from remote server. There are too many images, first time it shows only 16 images, but i want to show more images when the user scroll down the ScrollView or View then it load more images and show more images. Please help me...
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)...
When user want to change orientation of phone, my application show incorrect UI. Android
When user want to change orientation of phone, my application show incorrect UI. Phone OS: Android Titanium SDK: 3.0.2.GA My bug on video: http://www.youtube.com/watch?v=S0Yi-6ZKDcw ~~~ // create main app screen function ApplicationWindow() { var...
Pinch to zoom in iOS
Hi, I am trying the following code using 3.0.2GA, iOS 6 simulator and the pinch to zoom feature is working as expected, but there is an issue in the UI. Below is the code: ~~~ var win = Ti.UI.createWindow({ backgroundColor: '#000' }); var image =...
ScrollView issues Ti 2: ImageView inside a scrollView
Using titanium 2 intensively last days, one of the most breaking changes in iOS I've found is the new scrollview behavior CASE 1 - ImageView inside a ScrollView ------- (please note that `auto` is still valid in `contentWidth` and `contentHeight`...