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.challengetwo.fragments; //ww w. ja v a 2 s .com import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Switch; import android.widget.TextView; import android.widget.ToggleButton; import com.reoky.crackme.challengetwo.R; import com.reoky.crackme.challengetwo.listeners.HintFragmentOnCheckedChangeListener; public class HintFragment extends Fragment { public HintFragment() {} @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_hint, container, false); final ToggleButton switchShowHint = (ToggleButton) view.findViewById(R.id.switch_show_hint); switchShowHint.setOnCheckedChangeListener(new HintFragmentOnCheckedChangeListener((TextView) view.findViewById(R.id.text_hint))); return view; } }