Android Material Theme AlertDialog Button

August 29, 2019

When using Material Theme, the AlertDialog button looks funny (it is showing MaterialButton which is too closed together instead of the usual borderless Dialog button).

To solve this, use import androidx.appcompat.app.AlertDialog

// import android.app.AlertDialog
import androidx.appcompat.app.AlertDialog
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.