Skip to content

Instantly share code, notes, and snippets.

@m1ga

m1ga/index.js Secret

Created August 19, 2021 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m1ga/163c2034340917f8ae5cace8f6bdfdc4 to your computer and use it in GitHub Desktop.
Save m1ga/163c2034340917f8ae5cace8f6bdfdc4 to your computer and use it in GitHub Desktop.
Vertical scrollableView by designbymind
// --- 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 ---
"#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
}
<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