-1
我爲每個選項卡創建了自定義圖像,包括圖標和背景。Titanium:Tab&TabGroup - 自定義「backgroundImage」
我試着使用backgroundImage將圖像添加到我的選項卡,但它不工作。
有誰知道什麼是錯的,以及如何解決這個問題?
編輯: 我爲tabGroup欄創建了一個全新的外觀 - 背景,圖標等等。所以我不是簡單地添加一個圖標。
var tab1 = Titanium.UI.createTab
({
backgroundImage:'yourImage.png',
title:'Tab 1',
window:win1
});
顯示的 – Maulik 2012-02-23 04:28:02
[「使用和backgroundImage給圖像添加到我的標籤試圖」一些代碼是,請做](http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Tab.setBackgroundImage-method.html)。 – 2012-02-24 06:31:35