Created
February 22, 2011 19:34
-
-
Save dawsontoth/839218 to your computer and use it in GitHub Desktop.
Vertical Scrollable View
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); | |
var rotate = Ti.UI.create2DMatrix().rotate(90); | |
var counterRotate = rotate.rotate(-180); | |
var scrollView = Titanium.UI.createScrollableView({ | |
views:[ | |
Titanium.UI.createImageView({ image:'default_app_logo.png', transform: counterRotate }), | |
Titanium.UI.createImageView({ image:'KS_nav_ui.png', transform: counterRotate }), | |
Titanium.UI.createImageView({ image:'KS_nav_views.png', transform: counterRotate }) | |
], | |
showPagingControl:true, | |
width: 480, | |
height: 320, | |
transform: rotate | |
}); | |
win.add(scrollView); | |
win.open(); |
hey, any news about android version?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
var scrollableView = Titanium.UI.createScrollableView({
showPagingControl: true,
showVerticalScrollIndicator:true,
currentPage: currentPage,
cacheSize: 3,
views: webViews,
width: Titanium.Platform.displayCaps.platformWidth,
maxZoomScale:2.0,
touchEnabled:true,
contentHeight:'auto',
});
I want to scroll horizontal and vertical with zoom . what can i change in code ?