List of usage examples for android.app Fragment getArguments
final public Bundle getArguments()
From source file:net.xkor.genaroid.Genaroid.java
public static void readParams(@NonNull Fragment fragment) { readParams(fragment, fragment.getArguments()); }
From source file:net.xkor.genaroid.Genaroid.java
public static void readParams(@NonNull android.support.v4.app.Fragment fragment) { readParams(fragment, fragment.getArguments()); }
From source file:io.nuclei.box.intent.AbstractBinding.java
@TargetApi(11) public T toModel(android.app.Fragment fragment) { if (fragment == null) return null; Bundle bundle = fragment.getArguments(); if (bundle == null && fragment.getActivity() != null) { Activity activity = fragment.getActivity(); if (activity.getIntent() != null) bundle = activity.getIntent().getExtras(); }//ww w . j av a 2s .c om return toModel(bundle); }
From source file:com.kogitune.activity_transition.fragment.FragmentTransitionLauncher.java
/** * You should call this method after init your argumentsBundle.otherwise the transitionBundle will be not work. *//*from w w w. j av a2 s . c o m*/ public void prepare(Fragment toFragment) { final Bundle transitionBundle = TransitionBundleFactory.createTransitionBundle(context, fromView, bitmap); Bundle arguments = toFragment.getArguments(); if (arguments == null) { arguments = new Bundle(); } arguments.putBundle(TRANSITION_BUNDLE, transitionBundle); toFragment.setArguments(arguments); }
From source file:com.kogitune.activity_transition.fragment.FragmentTransitionLauncher.java
/** * You should call this method after init your argumentsBundle.otherwise the transitionBundle will be not work. *//*from w w w . ja va2 s .co m*/ public void prepare(android.support.v4.app.Fragment toFragment) { final Bundle transitionBundle = TransitionBundleFactory.createTransitionBundle(context, fromView, bitmap); Bundle arguments = toFragment.getArguments(); if (arguments == null) { arguments = new Bundle(); } arguments.putBundle(TRANSITION_BUNDLE, transitionBundle); toFragment.setArguments(arguments); }