use of android.os.Bundle in project android-betterpickers by code-troopers.
the class TimePickerDialogFragment method newInstance.
/**
* Create an instance of the Picker (used internally)
*
* @param reference an (optional) user-defined reference, helpful when tracking multiple Pickers
* @param themeResId the style resource ID for theming
* @return a Picker!
*/
public static TimePickerDialogFragment newInstance(int reference, int themeResId) {
final TimePickerDialogFragment frag = new TimePickerDialogFragment();
Bundle args = new Bundle();
args.putInt(REFERENCE_KEY, reference);
args.putInt(THEME_RES_ID_KEY, themeResId);
frag.setArguments(args);
return frag;
}
use of android.os.Bundle in project UltimateAndroid by cymcsg.
the class SuperAwesomeCardFragment method newInstance.
public static SuperAwesomeCardFragment newInstance(int position) {
SuperAwesomeCardFragment f = new SuperAwesomeCardFragment();
Bundle b = new Bundle();
b.putInt(ARG_POSITION, position);
f.setArguments(b);
return f;
}
use of android.os.Bundle in project kickmaterial by byoutline.
the class CategoriesListActivity method launch.
public static void launch(@Nonnull Activity context, @Nonnull Category category, View sharedElement) {
final Bundle options = KickMaterialBaseActivity.getSharedElementsBundle(context, sharedElement);
Intent intent = new Intent(context, CategoriesListActivity.class);
intent.putExtra(ARG_CATEGORY, Parcels.wrap(category));
ActivityCompat.startActivityForResult(context, intent, DEFAULT_REQUEST_CODE, options);
}
use of android.os.Bundle in project android by cSploit.
the class DirectoryPicker method onActivityResult.
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == PICK_DIRECTORY && resultCode == RESULT_OK) {
Bundle extras = data.getExtras();
String path = (String) (extras != null ? extras.get(DirectoryPicker.CHOSEN_DIRECTORY) : null);
returnDir(path);
}
}
use of android.os.Bundle in project glide by bumptech.
the class FlickrPhotoGrid method newInstance.
public static FlickrPhotoGrid newInstance(int size, int preloadCount, boolean thumbnail) {
FlickrPhotoGrid photoGrid = new FlickrPhotoGrid();
Bundle args = new Bundle();
args.putInt(IMAGE_SIZE_KEY, size);
args.putInt(PRELOAD_KEY, preloadCount);
args.putBoolean(THUMBNAIL_KEY, thumbnail);
photoGrid.setArguments(args);
return photoGrid;
}
Aggregations