如何将选项卡背景设置为透明?

How to set a tab background as transparent?

我需要将 5 个标签栏图像添加到 Titanium.UI.tabGroup,但我不知道如何实现透明背景。

我在创建选项卡组时尝试了不同的属性,但没有任何效果:

  this.myTabGroup = Titanium.UI.createTabGroup({
    opacity: 0, // NOT WORKING
    backgroundColor: 'transparent', // NOT WORKING
    barImage: null // NOT WORKING
  });

终于找到答案了!

使用以下选项解决了问题:

  this.myTabGroup = Titanium.UI.createTabGroup({
    tabsBackgroundColor : 'transparent',
    includeOpaqueBars : true,
    translucent : false
  });