List of usage examples for java.lang Helper.FragmentCreator Helper.FragmentCreator
Helper.FragmentCreator
From source file:mx.itesm.logistics.crew_tracking.activity.SyncListActivity.java
@Override public void onResult(int requestCode, int resultCode, final Intent data) { if (resultCode != TargetListener.RESULT_OK) return;/* ww w .jav a2 s.c om*/ switch (requestCode) { case REQUEST_CSTOPS: final String queueName = data.getStringExtra(TripListFragment.EXTRA_QUEUE_NAME); inflateFragment(R.id.fragmentContainer, new Helper.FragmentCreator() { @Override public Fragment createFragment() { return TripShowFragment.newInstance(queueName); } }, R.animator.no_animation, R.animator.no_animation, true); break; } }
From source file:mx.itesm.logistics.crew_tracking.activity.MainActivity.java
protected void inflateTrackFragment() { if (mIsLoading) { inflateFragment(R.id.fragmentContainer, new Helper.FragmentCreator() { @Override// www . j a v a 2 s .c o m public Fragment createFragment() { return new CrewTrackFragment(); } }, R.animator.no_animation, R.animator.no_animation); } }
From source file:mx.itesm.logistics.crew_tracking.fragment.ShopListFragment.java
@Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); mHelper.inflateFragment(getChildFragmentManager(), R.id.list_shop_mapLayout, new Helper.FragmentCreator() { @Override// w w w .ja va2s. c o m public Fragment createFragment() { return InsightMapsFragment.newInstance(InsightMapsFragment.Flags.DRAW_MARKER); } }, R.animator.no_animation, R.animator.no_animation); mRootLayout.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { @Override public void onGlobalLayout() { mRootLayout.getViewTreeObserver().removeGlobalOnLayoutListener(this); adjustLayoutPositioning(); } }); restartTimer(); }