Java Code Examples for androidx.core.content.res.TypedArrayUtils#getAttr()

The following examples show how to use androidx.core.content.res.TypedArrayUtils#getAttr() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ColorPickerPreference.java    From mollyim-android with GNU General Public License v3.0 4 votes vote down vote up
@SuppressLint("RestrictedApi")
public ColorPickerPreference(Context context, AttributeSet attrs) {
  this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.dialogPreferenceStyle,
                                               android.R.attr.dialogPreferenceStyle));
}
 
Example 2
Source File: CheckOnPrefClickListPreference.java    From vinyl-cast with MIT License 4 votes vote down vote up
@SuppressLint("RestrictedApi")
public CheckOnPrefClickListPreference(Context context, AttributeSet attrs) {
    this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.dialogPreferenceStyle,
            android.R.attr.dialogPreferenceStyle));
}
 
Example 3
Source File: InfoButtonListPreferencePref.java    From vinyl-cast with MIT License 4 votes vote down vote up
@SuppressLint("RestrictedApi")
public InfoButtonListPreferencePref(Context context, AttributeSet attrs) {
    this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.dialogPreferenceStyle,
            android.R.attr.dialogPreferenceStyle));
}
 
Example 4
Source File: NumberPickerPreferenceV7.java    From libcommon with Apache License 2.0 4 votes vote down vote up
public NumberPickerPreferenceV7(@NonNull final Context context,
	@Nullable final AttributeSet attrs) {

	this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.dialogPreferenceStyle,
		android.R.attr.dialogPreferenceStyle));
}
 
Example 5
Source File: DialogPreferenceV7.java    From libcommon with Apache License 2.0 4 votes vote down vote up
public DialogPreferenceV7(@NonNull final Context context,
	@Nullable final AttributeSet attrs) {

	this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.dialogPreferenceStyle,
		android.R.attr.dialogPreferenceStyle));
}
 
Example 6
Source File: MultilineLabelPreferenceV7.java    From libcommon with Apache License 2.0 4 votes vote down vote up
public MultilineLabelPreferenceV7(final Context context, final AttributeSet attrs) {
	this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.preferenceStyle,
		android.R.attr.preferenceStyle));
}
 
Example 7
Source File: ItemPickerPreferenceV7.java    From libcommon with Apache License 2.0 4 votes vote down vote up
public ItemPickerPreferenceV7(final Context context, final AttributeSet attrs) {
	this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.dialogPreferenceStyle,
		android.R.attr.dialogPreferenceStyle));
}
 
Example 8
Source File: SubTitleListPreferenceV7.java    From libcommon with Apache License 2.0 4 votes vote down vote up
public SubTitleListPreferenceV7(final Context context, final AttributeSet attrs) {
	this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.preferenceStyle,
		android.R.attr.preferenceStyle));
}
 
Example 9
Source File: ColorPickerDialogPreferenceV7.java    From libcommon with Apache License 2.0 4 votes vote down vote up
public ColorPickerDialogPreferenceV7(@NonNull final Context context,
	@Nullable final AttributeSet attrs) {

	this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.dialogPreferenceStyle,
		android.R.attr.dialogPreferenceStyle));
}
 
Example 10
Source File: SubTitlePreferenceV7.java    From libcommon with Apache License 2.0 4 votes vote down vote up
public SubTitlePreferenceV7(final Context context, final AttributeSet attrs) {
	this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.preferenceStyle,
		android.R.attr.preferenceStyle));
}
 
Example 11
Source File: TimePickerPreferenceV7.java    From libcommon with Apache License 2.0 4 votes vote down vote up
public TimePickerPreferenceV7(@NonNull final Context context,
	@Nullable final AttributeSet attrs) {

	this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.dialogPreferenceStyle,
		android.R.attr.dialogPreferenceStyle));
}
 
Example 12
Source File: SeekBarPreferenceV7.java    From libcommon with Apache License 2.0 4 votes vote down vote up
public SeekBarPreferenceV7(final Context context, final AttributeSet attrs) {
	this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.seekBarPreferenceStyle,
		android.R.attr.preferenceStyle));
}