Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19172] Android: Button default style disappears when decrease, then increase opacity.

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
LabelsTCSupportTriage, reprod
ReporterHarish Mridha
AssigneeUnknown
Created2014-11-12T09:24:49.000+0000
Updated2018-02-28T19:55:39.000+0000

Description

When we use setOpacity method in Ti classic or alloy project, button default style disappeared.

TEST CODE:

 
var win = Ti.UI.createWindow({
    backgroundColor:'#555'
});

var aButton = Ti.UI.createButton({
	title : 'Click',
	height : 'auto',
	width : 'auto',
	top : 50,
});

aButton.addEventListener('click', function() {
	aButton.setOpacity(0.3);
    setTimeout(function () {
        aButton.setOpacity(1);
    }, 2000);
});

win.add(aButton); 
win.open();

STEPS TO REPRODUCE:

- Create a simple project. - Update app.js with test code - Run on Android, check button default style - Click button, button style disappears (it should appear as default style)

Comments

  1. Lee Morris 2017-07-26

    I am able to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source