FileDocCategorySizeDatePackage
SeekBarDialogPreference.javaAPI DocAndroid 5.1 API2596Thu Mar 12 22:22:10 GMT 2015android.preference

SeekBarDialogPreference

public class SeekBarDialogPreference extends android.preference.DialogPreference
hide

Fields Summary
private static final String
TAG
private android.graphics.drawable.Drawable
mMyIcon
Constructors Summary
public SeekBarDialogPreference(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes)


     
                    
        super(context, attrs, defStyleAttr, defStyleRes);

        setDialogLayoutResource(com.android.internal.R.layout.seekbar_dialog);
        createActionButtons();

        // Steal the XML dialogIcon attribute's value
        mMyIcon = getDialogIcon();
        setDialogIcon(null);
    
public SeekBarDialogPreference(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr)

        this(context, attrs, defStyleAttr, 0);
    
public SeekBarDialogPreference(android.content.Context context, android.util.AttributeSet attrs)

        this(context, attrs, com.android.internal.R.attr.dialogPreferenceStyle);
    
public SeekBarDialogPreference(android.content.Context context)

        this(context, null);
    
Methods Summary
public voidcreateActionButtons()

        setPositiveButtonText(android.R.string.ok);
        setNegativeButtonText(android.R.string.cancel);
    
protected static android.widget.SeekBargetSeekBar(android.view.View dialogView)

        return (SeekBar) dialogView.findViewById(com.android.internal.R.id.seekbar);
    
protected voidonBindDialogView(android.view.View view)

        super.onBindDialogView(view);

        final ImageView iconView = (ImageView) view.findViewById(android.R.id.icon);
        if (mMyIcon != null) {
            iconView.setImageDrawable(mMyIcon);
        } else {
            iconView.setVisibility(View.GONE);
        }