Fragment setTargetFragment - top ranked examples from Open Source projects

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

This code example shows how to use the following methods: show, setTargetFragment
	 
	public abstract boolean doDialogPositiveClick(); 
	 
	protected static void initFragment(DialogFragment dialog, CharacterTabContentFragment fragment) 
    { 
        dialog.setTargetFragment(fragment, 0);
        dialog.show(fragment.getFragmentManager(), "dialog");
    } 
     
    protected CharacterTabContentFragment getTargetFragmentEx() 
    { 
    	return (CharacterTabContentFragment)getTargetFragment();
    } 
     
    protected GameFolder getGame() 
    { 
    	return getTargetFragmentEx().getGame(); 
    } 
     
    protected GameResourceCharacter getCharacter() 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: show, setTargetFragment
            final View v = inflater.inflate(R.layout.edit, root, false);
            v.findViewById(R.id.due).setOnClickListener(new View.OnClickListener() {
                @Override 
                public void onClick(View v) {
                    DialogFragment f = new DueDatePicker();
                    f.setTargetFragment(TaskEditFragment.this, REQ_SET_DATE);
                    f.show(getFragmentManager(), "datePicker");
                } 
            }); 
            update(v);
            return v;
        } 
 
        @Override 
        public void onActivityCreated(Bundle savedInstanceState) {
            super.onActivityCreated(savedInstanceState);
            final Bundle args = getArguments();
 
            final DB db = new DB(getActivity());
            try { 
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE

Related Fragment setTargetFragment Questions & Answers:

setTargetFragment Method Overview
Optional target for this fragment.
See Code Examples for other Android Fragment Methods: