use of android.app.DialogFragment in project xabber-android by redsolution.
the class MucPrivateChatInvitationDialog method newInstance.
public static DialogFragment newInstance(String account, String contact) {
DialogFragment fragment = new MucPrivateChatInvitationDialog();
setArguments(account, contact, fragment);
return fragment;
}
use of android.app.DialogFragment in project NotificationPeekPort by lzanita09.
the class DialogHelper method showHelpDialog.
public static void showHelpDialog(Activity activity) {
FragmentManager fm = activity.getFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
((DialogFragment) Fragment.instantiate(activity, HelpDialogFragment.class.getName())).show(ft, ABOUT_DIALOG_TAG);
}
use of android.app.DialogFragment in project FluxyAndroidTodo by armueller.
the class TodoListArrayAdapter method setHolderListeners.
private void setHolderListeners(final ViewHolder holder, final TodoItem item) {
holder.todoDescription.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
DialogFragment editOrDeleteDialog = new EditOrDeleteDialogFragment();
Bundle args = new Bundle();
args.putLong("todoItemId", item.getId());
editOrDeleteDialog.setArguments(args);
editOrDeleteDialog.show(activity.getFragmentManager(), String.valueOf(item.getId()));
return true;
}
});
holder.todoEditDescription.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
boolean handled = false;
if (actionId == EditorInfo.IME_ACTION_DONE) {
actionCreator.createEditTodoAction(item.getId(), v.getText().toString());
handled = true;
}
return handled;
}
});
holder.todoCheckBox.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
actionCreator.createToggleTodoCompleteAction(item.getId());
}
});
}
use of android.app.DialogFragment in project cardslib by gabrielemariotti.
the class MainActivity method openDialogFragment.
private void openDialogFragment(DialogFragment dialogStandardFragment) {
if (dialogStandardFragment != null) {
FragmentManager fm = getFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
Fragment prev = fm.findFragmentByTag("carddemo_dialog");
if (prev != null) {
ft.remove(prev);
}
//ft.addToBackStack(null);
dialogStandardFragment.show(ft, "carddemo_dialog");
}
}
use of android.app.DialogFragment in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class ActionListViewSettings method showDialogInner.
private void showDialogInner(int id, int which, boolean longpress, boolean newAction) {
DialogFragment newFragment = MyAlertDialogFragment.newInstance(id, which, longpress, newAction);
newFragment.setTargetFragment(this, 0);
newFragment.show(getFragmentManager(), "dialog " + id);
}
Aggregations