-
-
Save m1ga/163c2034340917f8ae5cace8f6bdfdc4 to your computer and use it in GitHub Desktop.
Vertical scrollableView by designbymind
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
// --- Begin Rotate leftDrawer_pages --- | |
var rotate = Ti.UI.createMatrix2D().rotate(90); | |
var counterRotate = rotate.rotate(-180); | |
$.scrollableView.applyProperties({ | |
transform: rotate, | |
height: Ti.Platform.displayCaps.platformWidth, | |
width: Ti.Platform.displayCaps.platformHeight | |
}); | |
$.scrollableView_page_0.applyProperties({ | |
transform: counterRotate, | |
width: Ti.Platform.displayCaps.platformWidth, | |
height: Ti.Platform.displayCaps.platformHeight | |
}); | |
$.scrollableView_page_1.applyProperties({ | |
transform: counterRotate, | |
width: Ti.Platform.displayCaps.platformWidth, | |
height: Ti.Platform.displayCaps.platformHeight | |
}); | |
rotate = null; | |
counterRotate = null; | |
// --- End Rotate leftDrawer_pages --- |
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
"#scrollableView" : { | |
width: Ti.UI.FILL, | |
height: Ti.UI.FILL, | |
scrollingEnabled: true, | |
pagingControlAlpha: 1, | |
pagingControlColor: 'rgba(0,0,0,0)', | |
pageIndicatorColor: 'rgba(0,0,0,0.24)', | |
currentPageIndicatorColor: 'rgba(0,0,0,1)', | |
pagingControlOnTop: false, | |
showPagingControl: true, | |
pagingControlHeight: 56, | |
overlayEnabled: true, | |
disableBounce: false | |
} | |
".page" : { | |
width: Ti.UI.FILL, | |
height: Ti.UI.FILL | |
} |
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
<ScrollableView id="scrollableView" currentPage="0"> | |
<View id="scrollableView_page_0" class="page" backgroundColor="blue"/> | |
<View id="scrollableView_page_1" class="page" backgroundColor="red"/> | |
</ScrollableView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment