I searched all Around this forum , but not getting what i exactly need. I need a Custom DialogPreference in Preference but that DialogPreference shouldn't have blue-strip header which i hate, And i already prepared one activity header template xml file for other activities which can be used as custom activity header.so i want to use that on this dialogPrerence. Plus i want Custom Preference File name but here the problem is it creates two Preference File name, one for Preference and Another for DialogPreference
but i found something like this here Using EditTextPreference with 2 user input fields
<com.yourdomain.YourDialogPreference
android:title="Title"
android:summary="Summary"
android:key="dialog_preference"/>
i 've done so far with this. DialogPreference Opens well, but how can i attach my header template to this custom DialogPreference
I figured out my self. Here you go.
1st include following line for the Header Template in the DialogPreference XML
and prepare own custom dialog layout just like normal custom dialog Template. The real need is, i want to customize the DialogPreference, I want two inputs for Password 1 and Password 2. (just to confirm the password)
This is my ListPreference XML code
Following lines are very Important, the DialogPreference Constructor
Following lines should be coded in the ListPreference OnCreate Method to have custom Preference File name