public class

SelfRemovingDropDownPreference

extends DropDownPreference
java.lang.Object
   ↳ android.support.v7.preference.Preference
     ↳ android.support.v7.preference.DialogPreference
       ↳ android.support.v7.preference.ListPreference
         ↳ android.support.v7.preference.DropDownPreference
           ↳ lineageos.preference.SelfRemovingDropDownPreference
Known Direct Subclasses

Class Overview

A Preference which can automatically remove itself from the hierarchy based on constraints set in XML.

Summary

[Expand]
Inherited Constants
From class android.support.v7.preference.Preference
Public Constructors
SelfRemovingDropDownPreference(Context context, AttributeSet attrs, int defStyle)
SelfRemovingDropDownPreference(Context context, AttributeSet attrs)
SelfRemovingDropDownPreference(Context context)
Public Methods
boolean isAvailable()
void onAttached()
void onBindViewHolder(PreferenceViewHolder holder)
void setAvailable(boolean available)
[Expand]
Inherited Methods
From class android.support.v7.preference.DropDownPreference
From class android.support.v7.preference.ListPreference
From class android.support.v7.preference.DialogPreference
From class android.support.v7.preference.Preference
From class java.lang.Object
From interface java.lang.Comparable

Public Constructors

public SelfRemovingDropDownPreference (Context context, AttributeSet attrs, int defStyle)

added in API level 8

Parameters
context Context
attrs AttributeSet
defStyle int

public SelfRemovingDropDownPreference (Context context, AttributeSet attrs)

added in API level 8

Parameters
context Context
attrs AttributeSet

public SelfRemovingDropDownPreference (Context context)

added in API level 8

Parameters
context Context

Public Methods

public boolean isAvailable ()

added in API level 8

Returns
boolean

public void onAttached ()

public void onBindViewHolder (PreferenceViewHolder holder)

Parameters
holder PreferenceViewHolder

public void setAvailable (boolean available)

added in API level 8

Parameters
available boolean