Code example for ToggleButton

Methods: setEnabled

0
	@Override 
	public void setEnabled(boolean enabled) {
		super.setEnabled(enabled);
		//Log.d("SeekBarPrefs", "Setting enabled for "+getKey()+" to "+enabled); 
		if (bar!=null) bar.setEnabled(enabled);// && ! (yEnabled && yaxis != null) );
		if (yaxis!=null) yaxis.setEnabled(enabled);
	} 
	 
 
	public SeekBarPreferenceView(final Context context, final AttributeSet attrs) {
		super(context, attrs);
		maximum = attrs.getAttributeIntValue(psndns, "max", 100);
		minimum = attrs.getAttributeIntValue(psndns, "min", 0);
		interval = attrs.getAttributeIntValue(psndns, "interval", 1);
		description = attrs.getAttributeValue(psndns, "summary");
	    description = Utils.getStringResource(context,description);
		subtext = attrs.getAttributeValue(androidns, "text");
	    mDefault = attrs.getAttributeIntValue(psndns,"defaultValue", 0);
	    yEnabled = attrs.getAttributeBooleanValue(psndns,"yenabled", false);
	    title = attrs.getAttributeValue(psndns, "title" );
	    title = Utils.getStringResource(context,title);