anko
anko copied to clipboard
How to change Alert Dialog's background color
Is there a way to do that? Including buttons
val alert = alert {
customView = layoutInflater.inflate(R.layout.test, null)
okButton { }
}
I could set the background for my custom view but in this case, the OK button won't be colored.
I don't think Anko
can do it since the AlertDialog.Builder class in Android SDK does not expose such function. You need to customize the view all by yourself.