Android Titanium.UI.Button属性图像未按文档中给出的方式工作

Android Titanium.UI.Button属性图像未按文档中给出的方式工作,android,image,button,titanium,appcelerator,Android,Image,Button,Titanium,Appcelerator,我想用文本显示按钮上的图标。我正在为此使用以下代码 var refreshButton = Titanium.UI.createButton({ image :'refresh.jpg', top : 0, height : 100, left : width, width : width, title : 'Refresh' }) 来自appcelerator api文档 图像:显示在屏

我想用文本显示按钮上的图标。我正在为此使用以下代码

 var refreshButton = Titanium.UI.createButton({
        image :'refresh.jpg',
        top : 0,
        height : 100,
        left : width,
        width : width,
        title : 'Refresh'
    })
来自appcelerator api文档

图像:显示在屏幕左侧按钮上的图像 头衔

但是像背景图像一样工作

我错过什么了吗

我也有同样的问题

但当图像小于按钮时,不会发生这种情况


我使用了按钮大小为1/4的图像,它解决了我的问题。

尝试将图像添加为按钮中的图像视图:

    var button = Ti.UI.createButton({backgroundColor:'black',title:'General Info',textAlign:'left',width:210, height:30,top:20,left:20, color:'white', font:{fontFamily:'AppleGothic',fontWeight:'bold',fontSize:20}}); 

    var icon = Ti.UI.createImageView({
        image : "../images/icon.png",
        height : 20,
        width  :20,
        left : 5
    });

button.add(icon)

我也面临同样的问题。我在Titanium.UI.Button上找到了两个不同的文档,它们的
图像的摘要不同。和