Code example for Fragment

Methods: getActivity

4
		return v;
	} 
 
	@Override 
	public void changedState(int state) {
		((StateChangedListener) getActivity()).changedState(state);
	} 
	 
	public void setState(int state) {
		button.setState(state);
	} 
 
}