List of usage examples for android.support.v4.app DialogFragment show
public int show(FragmentTransaction transaction, String tag)
From source file:de.schildbach.wallet.ui.EncryptKeysDialogFragment.java
public static void show(boolean cancelable, final FragmentManager fm) { final DialogFragment newFragment = new EncryptKeysDialogFragment(); final Bundle args = new Bundle(); args.putBoolean(ONBOARDING_ARG, true); args.putBoolean(CANCELABLE_ARG, cancelable); newFragment.setArguments(args);//from www .ja va 2 s.c om newFragment.show(fm, FRAGMENT_TAG); }
From source file:com.tony.selene.dialog.AbDialogUtil.java
/** * ???./*from w w w. j a va2 s . co m*/ * * @param view */ public static void showDialog(Context context, DialogFragment fragment) { FragmentActivity activity = (FragmentActivity) context; fragment.show(activity.getSupportFragmentManager(), dialogTag); }
From source file:com.ultramegasoft.flavordex2.dialog.ExportDialog.java
/** * Show the dialog./*from w w w . ja va2s. c o m*/ * * @param fm The FragmentManager to use * @param entryIds The list of entry IDs to export */ public static void showDialog(@NonNull FragmentManager fm, @NonNull long[] entryIds) { final DialogFragment fragment = new ExportDialog(); final Bundle args = new Bundle(); args.putLongArray(ARG_ENTRY_IDS, entryIds); fragment.setArguments(args); fragment.show(fm, TAG); }
From source file:com.ultramegasoft.flavordex2.dialog.FileImportDialog.java
/** * Show the dialog./*from w w w . ja v a 2 s. c o m*/ * * @param fm The FragmentManager to use * @param filePath The path to the selected file */ public static void showDialog(@NonNull FragmentManager fm, @NonNull String filePath) { final DialogFragment fragment = new FileImportDialog(); final Bundle args = new Bundle(); args.putString(ARG_FILE_PATH, filePath); fragment.setArguments(args); fragment.show(fm, TAG); }
From source file:com.ultramegasoft.flavordex2.dialog.FileSelectorDialog.java
/** * @param fm The FragmentManager to use * @param target The Fragment to send results to * @param requestCode The request code * @param rootPath The initial starting path * @param allowDirectories Whether to allow directories to be selected * @param nameFilter Filter out files that do not contain any of these string * @param path The current path *//*ww w. j a va2 s .c om*/ private static void showDialog(@NonNull FragmentManager fm, @Nullable Fragment target, int requestCode, @Nullable String rootPath, boolean allowDirectories, @Nullable String[] nameFilter, @Nullable String path) { final DialogFragment fragment = new FileSelectorDialog(); fragment.setTargetFragment(target, requestCode); final Bundle args = new Bundle(); args.putString(ARG_ROOT_PATH, rootPath); args.putString(ARG_PATH, path); args.putBoolean(ARG_ALLOW_DIRECTORIES, allowDirectories); args.putStringArray(ARG_NAME_FILTER, nameFilter); fragment.setArguments(args); fragment.show(fm, TAG); }
From source file:hu.balazsbakai.sq.ui.ActionBarCustomTitleOnClickListener.java
public void onClick(View v) { if (v.getId() == hu.balazsbakai.sq.R.id.actionBarTitle) { DialogFragment dialog = new FragmentServerListDialog(); dialog.show(fm, ""); }/*from w w w.j a v a 2s. co m*/ }
From source file:com.grokkingandroid.sampleapp.samples.actionbar.actionviews.BaseActivity.java
private void showDialog() { DialogFragment newFragment = AboutFragment.newInstance(); newFragment.show(getSupportFragmentManager(), "dialog"); }
From source file:com.example.android.DateTimePickers.MainActivity.java
public void showDatePickerDialog(View v) { DialogFragment newFragment = new DatePickerFragment(); newFragment.show(getSupportFragmentManager(), getString(R.string.date_picker)); }
From source file:com.example.android.DateTimePickers.MainActivity.java
public void showTimePickerDialog(View view) { DialogFragment newFragment = new TimePickerFragment(); newFragment.show(getSupportFragmentManager(), getString(R.string.time_picker)); }
From source file:com.oprisnik.semdroid.BaseActivity.java
@Override public boolean onOptionsItemSelected(MenuItem item) { if (item.getItemId() == R.id.menu_about) { DialogFragment newFragment = AboutDialogFragment.newInstance(); newFragment.show(getSupportFragmentManager(), "About"); return true; }// ww w .j a va2 s.c o m return super.onOptionsItemSelected(item); }