Search in sources :

Example 26 with DialogFragment

use of android.app.DialogFragment in project diary by billthefarmer.

the class Diary method showDatePickerDialog.

// showDatePickerDialog
public void showDatePickerDialog(Calendar date) {
    DialogFragment fragment = DatePickerFragment.newInstance(date);
    fragment.show(getFragmentManager(), DATEPICKER);
}
Also used : DialogFragment(android.app.DialogFragment)

Example 27 with DialogFragment

use of android.app.DialogFragment in project coursera-android by aporter.

the class TimePickerFragmentActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    // Capture UI elements
    mTimeDisplay = (TextView) findViewById(R.id.timeDisplay);
    mPickTime = (Button) findViewById(R.id.pickTime);
    // Set an OnClickListener for the Change the Time Button
    mPickTime.setOnClickListener(new OnClickListener() {

        public void onClick(View v) {
            // Create a new DatePickerFragment
            DialogFragment newFragment = new TimePickerFragment();
            // Display DatePickerFragment
            newFragment.show(getFragmentManager(), "TimePicker");
        }
    });
}
Also used : DialogFragment(android.app.DialogFragment) OnClickListener(android.view.View.OnClickListener) TextView(android.widget.TextView) View(android.view.View)

Example 28 with DialogFragment

use of android.app.DialogFragment in project cardslib by gabrielemariotti.

the class MainNativeActivity 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");
    }
}
Also used : FragmentManager(android.app.FragmentManager) FragmentTransaction(android.app.FragmentTransaction) BaseFragment(it.gmariotti.cardslib.demo.fragment.BaseFragment) GridBaseFragment(it.gmariotti.cardslib.demo.fragment.v1.GridBaseFragment) ListGplayCursorCardCABFragment(it.gmariotti.cardslib.demo.fragment.v1.ListGplayCursorCardCABFragment) GridGplayCABFragment(it.gmariotti.cardslib.demo.fragment.v1.GridGplayCABFragment) ListSectionedCardFragment(it.gmariotti.cardslib.demo.fragment.v1.ListSectionedCardFragment) BirthDayCardFragment(it.gmariotti.cardslib.demo.fragment.v1.BirthDayCardFragment) GridGplayFragment(it.gmariotti.cardslib.demo.fragment.v1.GridGplayFragment) NativeCardFragment(it.gmariotti.cardslib.demo.fragment.nativeview.NativeCardFragment) DismissAnimFragment(it.gmariotti.cardslib.demo.fragment.v1.DismissAnimFragment) ShadowFragment(it.gmariotti.cardslib.demo.fragment.v1.ShadowFragment) ListCursorCardFragment(it.gmariotti.cardslib.demo.fragment.v1.ListCursorCardFragment) ListColorFragment(it.gmariotti.cardslib.demo.fragment.v1.ListColorFragment) ListDifferentInnerBaseFragment(it.gmariotti.cardslib.demo.fragment.v1.ListDifferentInnerBaseFragment) NativeListBaseFragment(it.gmariotti.cardslib.demo.fragment.nativeview.NativeListBaseFragment) GPlayCardFragment(it.gmariotti.cardslib.demo.fragment.v1.GPlayCardFragment) NativeHeaderFragment(it.gmariotti.cardslib.demo.fragment.nativeview.NativeHeaderFragment) ListGplayCardCABFragment(it.gmariotti.cardslib.demo.fragment.v1.ListGplayCardCABFragment) StockCardFragment(it.gmariotti.cardslib.demo.fragment.v1.StockCardFragment) ListGplayUndoCardFragment(it.gmariotti.cardslib.demo.fragment.v1.ListGplayUndoCardFragment) GridCursorCardFragment(it.gmariotti.cardslib.demo.fragment.v1.GridCursorCardFragment) CardExpandFragment(it.gmariotti.cardslib.demo.fragment.v1.CardExpandFragment) CardWithListFragment(it.gmariotti.cardslib.demo.fragment.v1.CardWithListFragment) DialogFragment(android.app.DialogFragment) Fragment(android.app.Fragment) MiscCardFragment(it.gmariotti.cardslib.demo.fragment.v1.MiscCardFragment) ListExpandCardFragment(it.gmariotti.cardslib.demo.fragment.v1.ListExpandCardFragment) NativeThumbnailFragment(it.gmariotti.cardslib.demo.fragment.nativeview.NativeThumbnailFragment) ListGplayCardFragment(it.gmariotti.cardslib.demo.fragment.v1.ListGplayCardFragment) TodoNativeCardFragment(it.gmariotti.cardslib.demo.fragment.nativeview.TodoNativeCardFragment) ChangeValueCardFragment(it.gmariotti.cardslib.demo.fragment.v1.ChangeValueCardFragment)

Example 29 with DialogFragment

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_extras");
        if (prev != null) {
            ft.remove(prev);
        }
        //ft.addToBackStack(null);
        dialogStandardFragment.show(ft, "carddemo_dialog_extras");
    }
}
Also used : FragmentManager(android.app.FragmentManager) FragmentTransaction(android.app.FragmentTransaction) CroutonFragment(it.gmariotti.cardslib.demo.extras.fragment.CroutonFragment) UniversalImageLoaderFragment(it.gmariotti.cardslib.demo.extras.fragment.UniversalImageLoaderFragment) ListViewAnimationsFragment(it.gmariotti.cardslib.demo.extras.fragment.ListViewAnimationsFragment) DragDropListFragment(it.gmariotti.cardslib.demo.extras.fragment.DragDropListFragment) StickyListHeadersFragment(it.gmariotti.cardslib.demo.extras.fragment.StickyListHeadersFragment) ListViewGridAnimationsFragment(it.gmariotti.cardslib.demo.extras.fragment.ListViewGridAnimationsFragment) DialogFragment(android.app.DialogFragment) Fragment(android.app.Fragment) PicassoFragment(it.gmariotti.cardslib.demo.extras.fragment.PicassoFragment) BaseStaggeredGridFragment(it.gmariotti.cardslib.demo.extras.fragment.BaseStaggeredGridFragment) ExpandPicassoFragment(it.gmariotti.cardslib.demo.extras.fragment.ExpandPicassoFragment) GoogleProgressFragment(it.gmariotti.cardslib.demo.extras.fragment.nativeview.GoogleProgressFragment) CardWithListFragment(it.gmariotti.cardslib.demo.extras.fragment.CardWithListFragment) AnimateStaggeredGridFragment(it.gmariotti.cardslib.demo.extras.fragment.AnimateStaggeredGridFragment) IonFragment(it.gmariotti.cardslib.demo.extras.fragment.IonFragment) TwoWayViewFragment(it.gmariotti.cardslib.demo.extras.fragment.TwoWayViewFragment) ActionbarpullFragment(it.gmariotti.cardslib.demo.extras.fragment.ActionbarpullFragment) BaseFragment(it.gmariotti.cardslib.demo.extras.fragment.BaseFragment) StaggeredGridFragment(it.gmariotti.cardslib.demo.extras.fragment.StaggeredGridFragment)

Example 30 with DialogFragment

use of android.app.DialogFragment in project Klyph by jonathangerbaud.

the class AlbumVideosActivity method onVideoSelected.

@Override
public void onVideoSelected(Fragment fragment, Video video) {
    videoToDisplay = video;
    DialogFragment dialog = new VideoQualityDialog();
    dialog.show(getFragmentManager(), "VideoQualityDialog");
}
Also used : DialogFragment(android.app.DialogFragment) VideoQualityDialog(com.abewy.android.apps.klyph.fragment.VideoQualityDialog)

Aggregations

DialogFragment (android.app.DialogFragment)45 Fragment (android.app.Fragment)10 FragmentManager (android.app.FragmentManager)7 FragmentTransaction (android.app.FragmentTransaction)7 ConfirmationDialogFragment (com.fsck.k9.fragment.ConfirmationDialogFragment)3 Intent (android.content.Intent)2 Bundle (android.os.Bundle)2 View (android.view.View)2 TextView (android.widget.TextView)2 GPSAlertDialogFragment (com.agup.gps.fragments.GPSAlertDialogFragment)2 NetworkAlertDialogFragment (com.agup.gps.fragments.NetworkAlertDialogFragment)2 BackupAccountsDialogFragment (com.decad3nce.aegis.Fragments.BackupAccountsDialogFragment)2 ProgressDialogFragment (com.fsck.k9.fragment.ProgressDialogFragment)2 BaseFragment (it.gmariotti.cardslib.demo.fragment.BaseFragment)2 Activity (android.app.Activity)1 DevicePolicyManager (android.app.admin.DevicePolicyManager)1 BroadcastReceiver (android.content.BroadcastReceiver)1 ComponentName (android.content.ComponentName)1 Context (android.content.Context)1 IntentFilter (android.content.IntentFilter)1