Thing I did: Using less fragment when possible. Unfortunately, it's possible in almost case. So, I end up with a lot of fragments and a little of activities. Some drawbacks I've realized:
ActionBar
& Menu: When 2 fragment has different title, menu, thatbackstack
there is no way to restore the old title. You may need an Toolbar in every fragment for this case, but let believe me, that will spend you more time. startForResult
, activity has but fragment hasn't.My solution for this is using an Activity to wrap a fragment inside. So we have separate action bar, menu, startActivityForResult
, animation,...