Friday 15 June 2012

android - How to customize dialog background? -



android - How to customize dialog background? -

i want implement regular functional dialog, text , drawable on top of grayness overlay.

i did research, wondering if knows improve way of doing it. here few thoughts:

1) dirtiest way ditch dialog , create view false dialog. easy, to the lowest degree preferable because dialogs different on different android versions. nice reuse of dialog stuff has been implemented.

2) improve way reuse parts of dialog xml file, it's still "reinventing wheel" bit much.

3) great if inflate layout background , dialog.setbackground couldn't find that.

4) tried inflating layout , setting using .setview() on alertdialog.builder seems alters dialog itself, not background.

android dialog alertdialog

No comments:

Post a Comment