|
在res里面需要放图片文件
uzmoduledemo.addKeyboardListener({
height : 40,
lineColor : '#e6e6e6',
backgroundColor : '#fdfdfe',
data : [{
id : 'name0',
icon : 'widget://res/ic_category_0.png'
},{
id : 'name1',
icon : 'widget://res/ic_category_1.png'
},{
id : 'name2',
icon : 'widget://res/ic_category_2.png'
},{
id : 'name3',
icon : 'widget://res/ic_category_3.png'
},{
id : 'name4',
icon : 'widget://res/ic_category_4.png'
}],
fixedOn : api.frameName,
fixed : true,
}, function(ret, err){
api.toast({ msg : "111>>"+JSON.stringify(ret),location:'top' });//禁止alert弹出,否则会卡死
//alert(JSON.stringify(ret));
}); |
|