DialogFragment onDetach - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for DialogFragment onDetach method.

This code example shows how to use the following methods:onDetach
    } 
 
    @Override 
    public void onDetach() { 
        mActivity = null;
        super.onDetach(); 
    } 
 
    @Override 
    public final void onCreateOptionsMenu(android.view.Menu menu, android.view.MenuInflater inflater) {
        onCreateOptionsMenu(new MenuWrapper(menu), mActivity.getSupportMenuInflater());
    } 
 
    @Override 
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        //Nothing to see here. 
    } 
 
    @Override 
    public final void onPrepareOptionsMenu(android.view.Menu menu) {
7
CodeRank
This code example shows how to use the following methods:onDetach
    } 
 
    @Override 
    public void onDetach() { 
        mActivity = null;
        super.onDetach(); 
    } 
 
    @Override 
    public final void onCreateOptionsMenu(android.view.Menu menu, android.view.MenuInflater inflater) {
        onCreateOptionsMenu(new MenuWrapper(menu), mActivity.getSupportMenuInflater());
    } 
 
    @Override 
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        //Nothing to see here. 
    } 
 
    @Override 
    public final void onPrepareOptionsMenu(android.view.Menu menu) {
7
CodeRank
This code example shows how to use the following methods:onDetach
    } 
 
    @Override 
    public void onDetach() { 
        mActivity = null;
        super.onDetach(); 
    } 
 
    @Override 
    public final void onCreateOptionsMenu(android.view.Menu menu, android.view.MenuInflater inflater) {
        onCreateOptionsMenu(new MenuWrapper(menu), mActivity.getSupportMenuInflater());
    } 
 
    @Override 
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        //Nothing to see here. 
    } 
 
    @Override 
    public final void onPrepareOptionsMenu(android.view.Menu menu) {
6
CodeRank
This code example shows how to use the following methods:onDetach
    } 
 
    @Override 
    public void onDetach() { 
        mActivity = null;
        super.onDetach(); 
    } 
 
    @Override 
    public final void onCreateOptionsMenu(android.view.Menu menu, android.view.MenuInflater inflater) {
        onCreateOptionsMenu(new MenuWrapper(menu), mActivity.getSupportMenuInflater());
    } 
 
    @Override 
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        //Nothing to see here. 
    } 
 
    @Override 
    public final void onPrepareOptionsMenu(android.view.Menu menu) {
6
CodeRank
This code example shows how to use the following methods:onDetach
    } 
 
    @Override 
    public void onDetach() { 
        mActivity = null;
        super.onDetach(); 
    } 
 
    @Override 
    public final void onCreateOptionsMenu(android.view.Menu menu, android.view.MenuInflater inflater) {
        onCreateOptionsMenu(new MenuWrapper(menu), mActivity.getSupportMenuInflater());
    } 
 
    @Override 
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        //Nothing to see here. 
    } 
 
    @Override 
    public final void onPrepareOptionsMenu(android.view.Menu menu) {
5
CodeRank
This code example shows how to use the following methods:onDetach
	    super.onDestroyView(); 
	}; 
	 
	@Override 
	public void onDetach() { 
	    super.onDetach(); 
	    if (DEBUG_ENABLE) Log.v(APPLICATION_TAG,"onDetach");
	}; 
 
    private void reInitViewWidget() { 
    	if (DEBUG_ENABLE) Log.v(APPLICATION_TAG,"reInitViewWidget");
    	saveViewContents(); 
    	initViewWidget(); 
    	restoreViewContents(); 
    	 
    	CommonDialog.setDlgBoxSizeLimit(mDialog,true);
    }; 
     
    public void showDialog(FragmentManager fm, Fragment frag, String title) {
    	if (DEBUG_ENABLE) Log.v(APPLICATION_TAG,"showDialog");
4
CodeRank
This code example shows how to use the following methods:onDetach
     * </blockquote> 
     */ 
    @Override 
    public void onDetach() { 
        Log.v(TAG, "onDetach");
        super.onDetach(); 
    } 
 
    public static interface DialogCallbacks { 
        public void onPositiveClick(int position);
        public void onNegativeClick(); 
    } 
} 
3
CodeRank
This code example shows how to use the following methods:onDetach
		} 
	} 
 
	@Override 
	public void onDetach() { 
		super.onDetach(); 
		this.listener = null;
	} 
 
	@Override 
	public Dialog onCreateDialog(Bundle savedInstanceState) {
		AlertDialog.Builder builder = new AlertDialog.Builder(
				this.getActivity());
		builder.setTitle(this.getString(R.string.soundTypeAudio));
		builder.setPositiveButton(android.R.string.ok, this);
		builder.setNegativeButton(android.R.string.cancel, null);
 
		View view = LayoutInflater.from(this.getActivity()).inflate(
				R.layout.alarm_setting_sound_audio_choice, null, false); 
		ListView listView = (ListView) view.findViewById(android.R.id.list);
4
CodeRank
This code example shows how to use the following methods:onDetach
		} 
	} 
 
	@Override 
	public void onDetach() { 
		super.onDetach(); 
		this.listener = null;
	} 
 
	@Override 
	public Dialog onCreateDialog(Bundle savedInstanceState) {
		AlertDialog.Builder builder = new AlertDialog.Builder(
				this.getActivity());
		builder.setTitle(this.getString(R.string.typeBetween));
		builder.setPositiveButton(android.R.string.ok, this);
		builder.setNegativeButton(android.R.string.cancel, this);
 
		View view = LayoutInflater.from(this.getActivity()).inflate(
				R.layout.rule_between, null, false); 
 
4
CodeRank
This code example shows how to use the following methods:onDetach
		} 
	} 
 
	@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_rule, 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<RuleVo> list = new ArrayList<RuleVo>(3);
		RuleVo vo = new RuleVo();
4
CodeRank
onDetach Method Overview
Called when the fragment is no longer attached to its activity.
See Code Examples for other Android DialogFragment Methods: