1<PreferenceScreen 2 xmlns:android="http://schemas.android.com/apk/res/android"> 3 4 <org.robolectric.shadows.testing.TestDialogPreference 5 android:key="dialog" 6 android:title="Dialog Preference" 7 android:summary="This is the dialog summary" 8 android:dialogMessage="This is the dialog message" 9 android:positiveButtonText="YES" 10 android:negativeButtonText="NO"/> 11 12</PreferenceScreen>