FileDocCategorySizeDatePackage
SeekBarPreference.javaAPI DocAndroid 1.5 API1992Wed May 06 22:41:56 BST 2009android.preference

SeekBarPreference

public class SeekBarPreference extends android.preference.DialogPreference
hide

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


         
        super(context, attrs);

        setDialogLayoutResource(com.android.internal.R.layout.seekbar_dialog);
        setPositiveButtonText(android.R.string.ok);
        setNegativeButtonText(android.R.string.cancel);
        
        // Steal the XML dialogIcon attribute's value
        mMyIcon = getDialogIcon();
        setDialogIcon(null);
    
Methods Summary
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);
        }