I have a custom button and its background is blue. I have used it in many activities but just in 1 place I want to make my button transparent without effecting other.
So how can I make transparent just one instance of custom button in my project?
I have a custom button and its background is blue. I have used it in many activities but just in 1 place I want to make my button transparent without effecting other.
So how can I make transparent just one instance of custom button in my project?
You can add this in your XML:
android:background="?android:attr/selectableItemBackground"
or this in your code:
buttonVariable.setBackgroundColor(Color.TRANSPARENT);