I have a recyclerview with some TextView items displaying on top of my camera and I also have SeekBar which I want to use to set transparency of my list and components on it. So what I want to do is when I change the seekbar the transparency changes. My seekbar is working fine and I want to have it from 0% to 100%.
Asked
Active
Viewed 837 times
1
-
Take a look at the `setAlpha()` proptery. You can set the level of transparency with a float value from 0-1. Whereby the value 0 is 100% transparent and 1 is 100% opaque. – Barns Dec 03 '18 at 16:23
1 Answers
2
You will need to manually adjust the alpha of each view. So you would listen for changes to the seek bar, and when that happens, you will need to use animation to fade your elements in or out (using alpha - which can be thought of as transparency).

Booger
- 18,579
- 7
- 55
- 72
-
I have not used the animation but changing alpha on each TextView (Background and TextColor(argb) worked. ) – Sylwek845 Dec 04 '18 at 16:42