Code example for Fragment

import com.newsblur.R; 
import com.newsblur.view.StateToggleButton; 
import com.newsblur.view.StateToggleButton.StateChangedListener; 
public class FeedIntelligenceSelectorFragment extends Fragment implements StateChangedListener {
	public static final String FRAGMENT_TAG = "feedIntelligenceSelector";
	private StateToggleButton button;
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View v = inflater.inflate(R.layout.fragment_intelligenceselector, null);
		button = (StateToggleButton) v.findViewById(;
		return v;
	public void changedState(int state) {
Connect your IDE to all the code out there  Get Codota for Java