Background drawable not applying to Android button

You can’t apply the background on the material button.

If you are using Theme.MaterialComponents.*, then the normal button also used as the material button forcefully.

You have two options.

  1. change it to any AppCompat theme.
  2. Still If you need a material theme for some components, then use any material theme with a bridge. like Theme.MaterialComponents.*.Bridge

So, If you will go with option 2, you can use material button as per your need.

use for material button else use your normal button.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top