自定义选项卡组 Appcelerator [英] Custom Tabgroup Appcelerator

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

问题描述

我正在尝试在 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.

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

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