[翻译]The Layout System 布局 In Sencha Touch there are two basic building blocks: componentsand containers. When you instantiate both with no configuration, they look the same. However, there is one important difference: containers can containcomponents
最近做的练手的小项目中存在一个横向滑动的问题,需要HorizontalScroll中嵌套GridView,但是GridView默认是竖直排放的item,况且HorizontalScroll与GridView都属于存在滚动条的控件,所以会有一些冲突问题,这里上网搜索了一下,发现了一个较为简单的解决办法,就是在java代码中动态的设置GridView的numColumns属性.每项Item的宽度和GridView的总宽度.将numColumns设置为与list集合的长度一致,下面贴出关键代码: in