Back to project page FileManager.
The source code is released under:
GNU General Public License
If you think the Android project FileManager listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ankur.coreutils; /*from w w w .j av a 2 s . c om*/ import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.CheckBox; public class CheckBoxActivity extends CheckBox { public CheckBoxActivity(Context context) { super(context); } public CheckBoxActivity(Context context, AttributeSet attrs) { super(context, attrs); } public CheckBoxActivity(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public void setPressed(boolean pressed) { // Make sure the parent is a View prior casting it to View if (pressed && getParent() instanceof View && ((View) getParent()).isPressed()) { return; } super.setPressed(pressed); } }