0
假設我有一張尺寸爲200x100
的圖片hello.png
。 我創建使用hello.png
這樣的按鈕:鈦:Image - >「auto」
var button = Titanium.UI.createButton({
bottom : 50,
backgroundImage : "images/hello.png",
width:100,
height:"auto";
});
window.add(button);
會是什麼設備上的按鈕的高度的外觀? 它會是200像素還是會比200(也許是50)少得多?
根據我在谷歌上找到的,按鈕應該是200像素。但是,當我編譯應用程序時,按鈕高度大大縮小:/
有沒有什麼辦法讓它始終保持圖像的原始高度?不管別的什麼。 – 2011-12-26 11:14:19
我想設置其背景圖像的按鈕..它會顯示罰款與背景圖像。但我怎樣才能設置該按鈕的寬度和高度取決於圖像的寬度和高度? plz suggeest me – Hitarth 2012-03-28 12:23:45