Search in sources :

Example 16 with DialogFragment

use of android.support.v4.app.DialogFragment in project musicbrainz-android by jdamcd.

the class ReleaseActivity method onOptionsItemSelected.

@Override
public boolean onOptionsItemSelected(MenuItem item) {
    super.onOptionsItemSelected(item);
    switch(item.getItemId()) {
        case android.R.id.home:
            if (provideArtistAction) {
                startActivity(createArtistIntent());
            }
            return true;
        case R.id.action_add_collection:
            DialogFragment collectionDialog = new CollectionAddDialog();
            collectionDialog.show(getSupportFragmentManager(), CollectionAddDialog.TAG);
            return true;
    }
    return false;
}
Also used : CollectionAddDialog(org.musicbrainz.mobile.dialog.CollectionAddDialog) DialogFragment(android.support.v4.app.DialogFragment)

Example 17 with DialogFragment

use of android.support.v4.app.DialogFragment in project musicbrainz-android by jdamcd.

the class ReleaseActivity method showBarcodeNotFoundDialog.

private void showBarcodeNotFoundDialog() {
    DialogFragment barcodeNotFound = new BarcodeNotFoundDialog();
    barcodeNotFound.show(getSupportFragmentManager(), BarcodeNotFoundDialog.TAG);
}
Also used : BarcodeNotFoundDialog(org.musicbrainz.mobile.dialog.BarcodeNotFoundDialog) DialogFragment(android.support.v4.app.DialogFragment)

Example 18 with DialogFragment

use of android.support.v4.app.DialogFragment in project musicbrainz-android by jdamcd.

the class LoginFragment method showLoadingDialog.

private void showLoadingDialog() {
    DialogFragment loadingDialog = AuthenticatingDialog.newInstance(R.string.pd_authenticating);
    loadingDialog.show(getFragmentManager(), AuthenticatingDialog.TAG);
}
Also used : DialogFragment(android.support.v4.app.DialogFragment)

Example 19 with DialogFragment

use of android.support.v4.app.DialogFragment in project musicbrainz-android by jdamcd.

the class BarcodeSearchFragment method showSubmitDialog.

private void showSubmitDialog() {
    DialogFragment submitDialog = new ConfirmBarcodeDialog();
    submitDialog.show(getFragmentManager(), ConfirmBarcodeDialog.TAG);
}
Also used : ConfirmBarcodeDialog(org.musicbrainz.mobile.dialog.ConfirmBarcodeDialog) DialogFragment(android.support.v4.app.DialogFragment)

Example 20 with DialogFragment

use of android.support.v4.app.DialogFragment in project SeriesGuide by UweTrottmann.

the class CloudSetupFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View v = inflater.inflate(R.layout.fragment_cloud_setup, container, false);
    textViewDescription = (TextView) v.findViewById(R.id.textViewCloudDescription);
    textViewUsername = ButterKnife.findById(v, R.id.textViewCloudUsername);
    textViewWarning = ButterKnife.findById(v, R.id.textViewCloudWarnings);
    progressBar = (ProgressBar) v.findViewById(R.id.progressBarCloud);
    buttonAction = (Button) v.findViewById(R.id.buttonCloudAction);
    buttonRemoveAccount = ButterKnife.findById(v, R.id.buttonCloudRemoveAccount);
    buttonRemoveAccount.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            setProgressVisible(true);
            DialogFragment f = new RemoveCloudAccountDialogFragment();
            f.show(getFragmentManager(), "remove-cloud-account");
        }
    });
    updateViews();
    setProgressVisible(true);
    return v;
}
Also used : DialogFragment(android.support.v4.app.DialogFragment) RemoveCloudAccountDialogFragment(com.battlelancer.seriesguide.ui.dialogs.RemoveCloudAccountDialogFragment) RemoveCloudAccountDialogFragment(com.battlelancer.seriesguide.ui.dialogs.RemoveCloudAccountDialogFragment) View(android.view.View) TextView(android.widget.TextView)

Aggregations

DialogFragment (android.support.v4.app.DialogFragment)85 Fragment (android.support.v4.app.Fragment)31 FragmentTransaction (android.support.v4.app.FragmentTransaction)24 Bundle (android.os.Bundle)10 FragmentManager (android.support.v4.app.FragmentManager)9 View (android.view.View)8 SherlockDialogFragment (com.actionbarsherlock.app.SherlockDialogFragment)8 TextView (android.widget.TextView)7 AlertDialog (android.app.AlertDialog)5 DialogInterface (android.content.DialogInterface)4 OnClickListener (android.content.DialogInterface.OnClickListener)4 Intent (android.content.Intent)4 ListFragment (android.support.v4.app.ListFragment)4 AppCompatDialogFragment (android.support.v7.app.AppCompatDialogFragment)4 OnClickListener (android.view.View.OnClickListener)4 Button (android.widget.Button)4 ItemPinnedMessageDialogFragment (com.h6ah4i.android.example.advrecyclerview.common.fragment.ItemPinnedMessageDialogFragment)4 ProgressDialogFragment (com.wada811.android.dialogfragments.material.ProgressDialogFragment)4 Dialog (android.app.Dialog)3 ProgressDialogFragment (com.wada811.android.dialogfragments.traditional.ProgressDialogFragment)3