I want to use Android's built in icons, I don't know how, I tried to use this two lines:
android:background="@drawable/ic_lock_silent_mode_off"
android:background="R.drawable.ic_lock_silent_mode_off"
Both lines aren't working for me, how can I use this icon to my button?
I get this error:
error: Error: No resource found that matches the given name (at 'background' with value '@drawable/ic_lock_silent_mode_off').
With that, you are trying to reference your own drawable, not Android's.
You need to use:
android:background="@android:drawable/ic_lock_silent_mode_off"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With