Button Regression in 2.0.2GA

You must Login before you can answer or comment on any questions.

I have a problem with buttons in 2.0.2GA on Android 2.2. I have buttons with no title and only an image.

var win = Titanium.UI.createWindow({
    backgroundColor : '#1f1f1f',
    fullscreen : true,
    navBarHidden : true,
    exitOnClose : true,
    top : 0
});
 
var view = Ti.UI.createView({
    width : '100%',
    height : 63,
    top : 0,
    left : 0
});
 
var button = Titanium.UI.createButton({
    width : 42,
    height : 42,
    right : 32,
    image : '/icon.png'
});
 
button.addEventListener('click', function(e) {
    Ti.API.info('clicked');
});
 
view.add(button);
 
win.add(view);
 
win.open();
Run this code in 2.0.1GA2, 1.8.x, 1.7.x and the button displays just as an image.

But in 2.0.2GA the image shows but behind it there is a button object being drawn, this button object then flashes (orange in my case) as it is clicked.

Richard

— asked 12 months ago by Richard Marsh
1 Comment
  • I did some buttons in 2.02GA and didn't notice anything like that, for other reasons I switched to using imageViews instead (actually I'd like for my buttons to do exactly what you don't want)

    — commented 12 months ago by Esben Maaløe

Your Answer

Think you can help? Login to answer this question!