【发布时间】:2014-02-11 19:37:00
【问题描述】:
我们可以制作一个钛制的安卓桌面视图水平滚动吗? 我试过这个
var scrollAlbums = Ti.UI.createScrollView({
bottom : 10,
backgroundColor:'green',
contentHeight : Ti.UI.SIZE, // add this
contentWidth : Ti.UI.SIZE, // change this
height : 95,
layout : 'horizontal',
showHorizontalScrollIndicator : false,
showVerticalScrollIndicator : true, // should be a visual indication if can scroll
scrollType : 'horizontal',
horizontalWrap : false,
width : Ti.UI.FILL // assuming you need it full width - if not specify a width
});
// Create a TableView.
var aTableView = Ti.UI.createTableView({width:1000,backgroundColor:'red',height:200});
请建议我应该是什么可能的解决方案。谢谢。
【问题讨论】:
-
你试过 Titanium ScrollableView。那个会水平滚动。
-
谢谢阿南德。是的,我试过了,但我真正想要的是视图应该只有一个,就像我制作一个 tableview 并定义它的大宽度并添加一些水平滚动条。这有意义吗?
标签: android uitableview scroll titanium-mobile horizontal-scrolling