use of android.support.v4.app.DialogFragment in project MovieGuide by esoxjem.
the class MoviesListingFragment method displaySortingOptions.
private void displaySortingOptions() {
DialogFragment sortingDialogFragment = SortingDialogFragment.newInstance(moviesPresenter);
sortingDialogFragment.show(getFragmentManager(), "Select Quantity");
}
use of android.support.v4.app.DialogFragment in project facebook-android-sdk by facebook.
the class FacebookActivity method getFragment.
protected Fragment getFragment() {
Intent intent = getIntent();
FragmentManager manager = getSupportFragmentManager();
Fragment fragment = manager.findFragmentByTag(FRAGMENT_TAG);
if (fragment == null) {
if (FacebookDialogFragment.TAG.equals(intent.getAction())) {
FacebookDialogFragment dialogFragment = new FacebookDialogFragment();
dialogFragment.setRetainInstance(true);
dialogFragment.show(manager, FRAGMENT_TAG);
fragment = dialogFragment;
} else if (DeviceShareDialogFragment.TAG.equals(intent.getAction())) {
DeviceShareDialogFragment dialogFragment = new DeviceShareDialogFragment();
dialogFragment.setRetainInstance(true);
dialogFragment.setShareContent((ShareContent) intent.getParcelableExtra("content"));
dialogFragment.show(manager, FRAGMENT_TAG);
fragment = dialogFragment;
} else {
fragment = new LoginFragment();
fragment.setRetainInstance(true);
manager.beginTransaction().add(R.id.com_facebook_fragment_container, fragment, FRAGMENT_TAG).commit();
}
}
return fragment;
}
use of android.support.v4.app.DialogFragment in project android-advancedrecyclerview by h6ah4i.
the class DraggableSwipeableExampleActivity method onItemPinned.
/**
* This method will be called when a list item is pinned
*
* @param position The position of the item within data set
*/
public void onItemPinned(int position) {
final DialogFragment dialog = ItemPinnedMessageDialogFragment.newInstance(position);
getSupportFragmentManager().beginTransaction().add(dialog, FRAGMENT_TAG_ITEM_PINNED_DIALOG).commit();
}
use of android.support.v4.app.DialogFragment in project android-advancedrecyclerview by h6ah4i.
the class SwipeableExampleActivity method onItemPinned.
/**
* This method will be called when a list item is pinned
*
* @param position The position of the item within data set
*/
public void onItemPinned(int position) {
final DialogFragment dialog = ItemPinnedMessageDialogFragment.newInstance(position);
getSupportFragmentManager().beginTransaction().add(dialog, FRAGMENT_TAG_ITEM_PINNED_DIALOG).commit();
}
use of android.support.v4.app.DialogFragment in project android-advancedrecyclerview by h6ah4i.
the class SwipeOnLongPressExampleActivity method onItemPinned.
/**
* This method will be called when a list item is pinned
*
* @param position The position of the item within data set
*/
public void onItemPinned(int position) {
final DialogFragment dialog = ItemPinnedMessageDialogFragment.newInstance(position);
getSupportFragmentManager().beginTransaction().add(dialog, FRAGMENT_TAG_ITEM_PINNED_DIALOG).commit();
}
Aggregations