I have a problem on rotation with custom dialog.
My dialog has separate layouts for portrait and landscape orientations. The launching Activities manage their own changes through onConfigurationChanged.
The problem is that, when rotation occurs with the dialog visible, it retains the layout it was started with. Is there a way to update the dialog’s layout without changes to each Activity that may show it?
I’m assuming the Activities use onConfigurationChanged in order to change only their layouts while keeping data, tasks, etc. It would seem silly to have each of them update the Dialog when necessary. Makes sense for the Dialog itself to do this – but Dialogs don’t have onConfigurationChanged.
Changing your Dialog into a dialog-themed Activity would do what you need.
It’s a workaround, not a solution, though, so I hope someone has a better idea.