Android: explain need for imageView.setImageAlpha(0)
BoD opened this issue · 3 comments
BoD commented
Hi!
On Android, in order for the graphics to be correctly rendered, imageView.setImageAlpha(0);
must be called on the ImageView
.
This is confusing because one would expect this line to make the ImageView completely transparent!
The reason for this should be explained on the main page, or somewhere else, to avoid any confusion.
BoD commented
Also, Keyframes has a minSdkVersion
of 15, but setImageAlpha
exists since 16. Even more confusion because of that :)
lozzle commented
It was a fix for #47, which I wasn't able to repro on my devices.
I wasn't aware setImageAlpha is API 16, so we should add a version check there
pinkred commented
I used ImageView.setBackgroundColor().