louieansonng
louieansonng

Reputation: 343

AlertDialog title with component?

Is it possible for the title in the AlertDialog to be a custom View?

I would like to add an edit Button on the right side of the title bar.

Upvotes: 1

Views: 192

Answers (1)

Gopal
Gopal

Reputation: 1719

In AlertDialog there is a method called setCustomTitle which you can pass custom view.

Hope this helps.

Upvotes: 1

Related Questions