Android Question Fading out text / views, making the display dim.

Russ

Member
Licensed User
Longtime User
Hello,

I have a requirement I'm struggling with a bit. I have Labels, Buttons, ImageViews, SeekBars, Checkboxes etc etc... and after a set period of time I'd like to make them become darker or a bit transparent, something to hide them a little until activated again.

I am able to do this with labels, I can just set the alpha to 30%. I'm not sure what to do for other controls.

Another idea I had was to float a panel above the views, set it to black and set the alpha again. The only trouble with this approach is it also makes the background or other things around the view items appear darker.

Does anyone have any good ideas for this please?

Thank you :)
 

Russ

Member
Licensed User
Longtime User
LucaMs - I already have the views on a panel with 0 alpha, but it doesn't affect the transparency of the objects in it. Is that what you meant?

Erel - Thank you, I'll have a go with that tonight and see how I get on :)
 
Upvote 0

Russ

Member
Licensed User
Longtime User
Ahh hah, yeah my views aren't rectangular so it'd be hard to pull off but I could always have a darkened panel are that would look neat.

Thanks
 
Upvote 0
Top