Back to project page android-crackme-challenge.
The source code is released under:
MIT License
If you think the Android project android-crackme-challenge 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.reoky.crackme.challengeeight.listeners; /*from w w w . j a v a2s .co m*/ import android.view.View; import android.widget.CompoundButton; import android.widget.TextView; import com.reoky.crackme.challengeeight.R; /** * Listener for the toggle switch on the hint fragment */ public class HintFragmentOnCheckedChangeListener implements CompoundButton.OnCheckedChangeListener { TextView textHint; public HintFragmentOnCheckedChangeListener(TextView textHint) { this.textHint = textHint; } @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { int newVisibility = isChecked ? View.VISIBLE : View.GONE; if (textHint != null) { textHint.setVisibility(newVisibility); } } }