本文介绍了自定义选项卡组加速器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在尝试在appcelerator中创建一个自定义选项卡组,其中一个(或两个)选项卡比其余选项卡大.我已附上一张我要尝试实现的图像.

I'm trying to make a custom tabgroup in appcelerator in which one (or two) of the tabs is bigger than the rest. I have attached an image of what I'm trying to pull off.

我能够创建一个自定义选项卡组,但是每次我更改选项卡时它都会刷新,并且我希望我的选项卡的行为像本机选项卡组一样.任何帮助将不胜感激

I am able to make a custom tabgroup, but it refreshes each time I change a tab, and I want my tabs to behave like a native tabgroup. Any help would be much appreciated

推荐答案

我发现了这个问题.对于以后遇到相同问题的任何人都应该有所帮助:选项卡组是其自己的视图.如果要向其添加覆盖,请创建一个新视图,然后将其添加到选项卡组,而不是窗口本身.

I figured out this issue. For anyone that has this same issue in the future this should help: The tabgroup is its own view. If you want to add overlays to it, make a new view, and add it to the tabgroup, NOT to the window itself.

这篇关于自定义选项卡组加速器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 20:27