Code example for DialogFragment

Methods: onDetach

0
		} 
	} 
 
	@Override 
	public void onDetach() { 
		super.onDetach(); 
		this.listener = null;
	} 
 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.alarm_setting_sound_choice,
				container, false);
		ListView listView = (ListView) view.findViewById(android.R.id.list);
		listView.setBackgroundColor(this.getActivity().getResources()
				.getColor(android.R.color.background_light));
		listView.setOnItemClickListener(this);
 
		List<SoundTypeVo> list = new ArrayList<SoundTypeVo>(2);
		SoundTypeVo vo = new SoundTypeVo();