Wouldn't it be better to use string resource ? You use same values in dialog_two_buttons.xml.