Code example for Fragment

Methods: getActivity, onCreateView

0
	 * android.view.ViewGroup, android.os.Bundle) 
	 */ 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		super.onCreateView(inflater, container, savedInstanceState);
		ColorPickerView ret = new ColorPickerView(this.getActivity().getBaseContext(),
				onChangeListener, 0xFF0000);
		ret.setLedIndex(getLedIndex());
		// View ret = inflater.inflate(R.layout.rgb_slider, container, false); 
		return ret;
 
	} 
 
}