SK9 SK9 - 5 months ago 45
Android Question

Android and setting alpha for (image) view alpha

Is there really no XML attribute counterpart to


If not, what alternatives are there?


No, there is not, see how the "Related XML Attributes" section is missing in the ImageView.setAlpha(int) documentation. The alternative is to use View.setAlpha(float) whose XML counterpart is android:alpha. However, the latter in available only since API level 11.