煎茶触摸合并与自定义工具栏的ListView后退按钮栏 [英] Sencha Touch merging ListView back button bar with custom toolbar

查看:88
本文介绍了煎茶触摸合并与自定义工具栏的ListView后退按钮栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了我想在我的应用程序的所有意见统一使用自定义工具栏。

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

问题:当选择一个ListView项目,并详细视图加载,我得到默认的后退按钮栏和我的自定义工具栏,如上图所示。

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.

谁能指点我,我怎么能合并这两个酒吧,有一个酒吧,好吗?

推荐答案

根据您的前面<一个href=\"http://stackoverflow.com/questions/24836239/sencha-touch-consecutive-listviews-double-back-buttons-issue\">question,我假设你使用的是Ext.navigation.View来承载您的部分和空缺清单。

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

而不是创建自己的工具栏,你可以自定义导航视图的导航栏。你得到通过访问它navigationview.getNavigationBar(); A导航栏,不过是一种Ext.TitleBar,因此您可以通过 navigationbar.add添加组件();

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();

这篇关于煎茶触摸合并与自定义工具栏的ListView后退按钮栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆