Sencha Touch merging ListView back button bar with custom toolbar

不想你离开。 提交于 2019-12-13 05:28:57

问题


I have created a custom toolbar which I want to use uniformly across all the views of my app.

PROBLEM: When a ListView item is selected and a detail view loaded, I get the default back button bar and my custom toolbar, as shown above.

How can I merge both bars and have a single bar?


回答1:


Based on your earlier question, I assume you are using an Ext.navigation.View to host your section and vacancy lists.

Instead of creating your own toolbar you could customize the navigationbar of the navigation view. You get access to it by navigationview.getNavigationBar(); A navigationbar is nothing but an Ext.TitleBar, so you can add components by navigationbar.add();



来源:https://stackoverflow.com/questions/24845117/sencha-touch-merging-listview-back-button-bar-with-custom-toolbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!