Path_Preference
constructor(Context: Context, attrs: AttributeSet)
Perform inflation from XML and apply a class-specific base style. This constructor of Preference allows subclasses to use their own base style when they are inflating. For example, a CheckBoxPreference constructor calls this version of the super class constructor and supplies android.R.attr.checkBoxPreferenceStyle for defStyle. This allows the theme's checkbox preference style to modify all of the base preference attributes as well as the CheckBoxPreference class's attributes. Parametersc
Parameters
Context
The Context this is associated with, through which it can access the current theme, resources, SharedPreferences, etc.
attrs
The attributes of the XML tag that is inflating the preference.