user582934
user582934

Reputation:

View above Dialog?

Just a quick question.

Would it be possible to bring a View (Button) above a Dialog that is currently showing?

Thanks

Upvotes: 5

Views: 1650

Answers (2)

FoamyGuy
FoamyGuy

Reputation: 46856

You could splash another dialog(that contains a button) ontop of the first one.

If you are aiming to get literally just a button and nothing else you'd have to define a custom layout for a dialog that is all transparent except for your button.

Upvotes: 2

P Varga
P Varga

Reputation: 20229

No, but you can create it as a custom View on the Dialog, at least (with AlertDialog.Builder.setView()

Upvotes: 1

Related Questions