I have these variables in colors.xml
<color name="white1">#FFFFFF</color> <!-- 100% of transparency -->
<color name="white2">#BFFFFFFF</color> <!-- 75% of transparency -->
<color name="white3">#80FFFFFF</color> <!-- 50% of transparency -->
<color name="white4">#40FFFFFF</color> <!-- 25% of transparency -->
<color name="white5">#00FFFFFF</color> <!-- 0% of transparency -->
Is there any way to pass transparency via parameters such as strings.xml in this topic or another way instead of make many variables
com.google.android.material.slider.Sliderand this view has many attributes relating colors and if I setandroid:alpha="0.25"this will apply to the whole view. I wish my English is clear to understand.