Bex Bex - 1 year ago 116
Android Question

Setting Alpha level on view doesn't work

I am trying to set the alpha level of a view.
I am reading the documentation here:

and it seems as if it should be possible even on android 2.1 which I am developing for (as I cant see it saying otherwise) but when I add it to my view


I get an error saying:

No resource identifier found for attribute 'alpha' in package

How do I set the alpha level of a view?

Answer Source

you can set the alpha with the background properties like this way


here the first 50 value is set the alpha value

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download