SeekBarDialogPreferencepublic class SeekBarDialogPreference extends android.preference.DialogPreference
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 void | createActionButtons()
setPositiveButtonText(android.R.string.ok);
setNegativeButtonText(android.R.string.cancel);
| protected static android.widget.SeekBar | getSeekBar(android.view.View dialogView)
return (SeekBar) dialogView.findViewById(com.android.internal.R.id.seekbar);
| protected void | onBindDialogView(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);
}
|
|