anko icon indicating copy to clipboard operation
anko copied to clipboard

How to change Alert Dialog's background color

Open qbait opened this issue 6 years ago • 1 comments

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.

qbait avatar Oct 22 '18 11:10 qbait

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.

iceboundrock avatar Dec 18 '18 16:12 iceboundrock