Я работаю над Android-приложением, и у меня есть подкласс AlertDialog. Я хотел бы поставить 2 ImageButtons в правой части области заголовка диалогового окна (аналогично ActionBar в Activity). Я использую setCustomTitle() для этого, который заменяет область заголовка специальным представлением моего собственного создания. Это отлично работает, но стиль моей пользовательской области названия не совпадает с стандартным стилем заголовка (высота, цвет, разделитель и т.д.).
Мой вопрос: с пониманием того, что стиль зависит от версии ОС и производителя, как я могу настроить свой пользовательский заголовок в диалоговом окне так, чтобы он соответствовал стандартным стилям заголовка для других AlertDialogs?
Вот изображение anAlertDialog со стандартным стилем (это от ICS, но я хочу иметь возможность сопоставить любой вариант - не этот особый стиль)
И вот изображение AlertDialog с настраиваемым заголовком и кнопками (обратите внимание, как высота и цвет заголовка не соответствуют стандартному диалоговому окну)
EDIT: я не могу просто добавить ImageButtons в стандартный заголовок, потому что у меня нет доступа к нему. Если вы знаете (надежный, не-hack) метод для добавления кнопок в стандартную область заголовка, я бы тоже согласился с этим.