In WindowManager.LayoutParams
class there is a constant called ALPHA_CHANGED
. What is the purpose of it? I can't seem to find anything about it.
Asked
Active
Viewed 175 times
1

dreamcoder
- 1,233
- 1
- 11
- 25
1 Answers
0
The alpha value has to do with the opacity of the view (i.e., how translucent it is). ALPHA_CHANGED is used to trigger events based on a change.

Joel Nieman
- 746
- 4
- 13
-
Thanks. So I can use it to trigger alpha changes if there is any in window. is it right? – dreamcoder Jun 07 '16 at 18:29
-
It's not used to change the alpha value but rather to capture a change in it triggered by something else, like a switch or a slider. – Joel Nieman Jun 07 '16 at 18:47
-
Do you have a specific use for it you are trying to figure out? – Joel Nieman Jun 07 '16 at 18:54
-
No.. I am just trying to understand concept – dreamcoder Jun 07 '16 at 18:55
-
1but how to use one? – magrif Feb 26 '22 at 19:04