-
Notifications
You must be signed in to change notification settings - Fork 139
FilePicker Preference
public class FilePickerPreference
extends Preference implements DialogSelectionListener, Preference.OnPreferenceClickListener
Public constructors |
---|
FilePickerPreference(Context context) Constructor to create a Preference. |
FilePickerPreference(Context context, AttributeSet attrs) Constructor that is called when inflating a Preference from XML. |
FilePickerPreference(Context context, AttributeSet attrs, int defStyleAttr) Perform inflation from XML and apply a class-specific base style. |
Public Methods | |
---|---|
DialogProperties |
getProperties() Retrieve the Properties this Dialog is using. |
void |
setProperties(DialogProperties properties) Set properties dialog would be using. |
###FilePickerPreference FilePickerPreference(Context context)
Constructor to create a Preference.
The supplied context
is used to obtain the window manager, populate dialog list and checking permissions.
Parameters | |
---|---|
context |
Context: The Context in which to store Preference values. |
###FilePickerPreference FilePickerPreference(Context context, AttributeSet attrs)
Constructor that is called when inflating a Preference from XML. This is called when a Preference is being constructed from an XML file, supplying attributes that were specified in the XML file. This version uses a default style of 0, so the only attribute values applied are those in the Context's Theme and the given AttributeSet.
Parameters | |
---|---|
context |
Context: the context in which the dialog should run |
attrs |
AttributeSet: The attributes of the XML tag that is inflating the preference. |
###FilePickerPreference FilePickerPreference(Context context, AttributeSet attrs, int defStyleAttr)
Constructor that is called when inflating a Preference from XML. This is called when a Preference is being constructed from an XML file, supplying attributes that were specified in the XML file. This version uses a default style of 0, so the only attribute values applied are those in the Context's Theme and the given AttributeSet.
Parameters | |
---|---|
context |
Context: the context in which the dialog should run |
attrs |
AttributeSet: The attributes of the XML tag that is inflating the preference. |
defStyleAttr |
int: An attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults. |
###getProperties DialogProperties getProperties()
Retrieve the Properties this Dialog is using.
Returns | |
---|---|
DialogProperties | properties dialog is using. |
###setProperties
void setProperties(DialogProperties properties)
Set properties dialog would be using.
Parameters | |
---|---|
properties |
DialogProperties: properties dialog will be using. |