I'm not sure what tab is in your code, but what you need to get the buttons aligned horizontally is an hbox layout:layout: 'hbox',items: [ { xtype: 'button', text: 'ADD', ui: 'confirm', handler: function() { view.setActiveItem(2, {type:'fade', direction:'right'}); } },{ xtype: 'button', text: 'Search Friends', ui: 'Search', handler: function() { view.setActiveItem(3, {type:'fade', direction:'right'}); } }] http://docs.sencha.com /touch/2.2.1/#!/api/Ext.layout.HBox 这篇关于同一行中的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-24 18:43