Getting alpha/opacity of a View in Android?

I would highly recommend you to define the animations in an XML-file. The API doesn't have support for getting a specific alpha You can still have in mind that the opacity that your view has, is the last one you've defined; in this case, (your fadeIn() method), your latest opacity value is the value you passed into the AlphaAnimation constructor.

I would highly recommend you to define the animations in an XML-file. The API doesn't have support for getting a specific alpha. You can still have in mind that the opacity that your view has, is the last one you've defined; in this case, (your fadeIn() method), your latest opacity value is the value you passed into the AlphaAnimation constructor.

While API 3.0 has a setAlpha method, most of us are still targeting 2. X since penetration for anything over 2.2 is pretty slim. ImageViews and Drawables already have setAlpha methods, and TextViews can be manipulated using various ARGB colors.

Some people just use zero-duration AlphaAnimations, so generally you can get the effect you need, but sometimes you’ll need a little more complex behavior (e.g. , setting opacity based on drag position) or convenient (e.g. , setting the alpha of the contents an entire layout). Fortunately, it’s pretty simple – despite the lack of documentation.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions