[TIMOB-19172] Android: Button default style disappears when decrease, then increase opacity.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | TCSupportTriage, reprod |
Reporter | Harish Mridha |
Assignee | Unknown |
Created | 2014-11-12T09:24:49.000+0000 |
Updated | 2018-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();
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