Issue
I want to remove the greyish background of the button.
I made a button with a drawableTop
attribute
, tried removing the bg with this XML code in the button tag:
android:background="@null"
android:backgroundTint="@null"
This only affects the layout editor i.e. the color remains the same (default theme color) when run on an emulator
I also don't understand why is there a difference in colors between the layout editor and the actual app.
P.S. I am very new to Android Studio
Solution
Assign this button any color in XML and you want to transparent it then go to the color resource file and set that color's alpha value to 0 like this
now your buttons background is transparent if you mean this by null.
Answered By - Aquib Ali
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.