Fix hide fragment transition.

Bug 30699392

During optimized hide operations with fragment transitions, the
hidden fragment View should not be GONE, but instead be visible
and the exiting views should be made INVISIBLE. After the
transition completes, the fragment's view should be GONE.

Add tests for Fragment Transitions with show/hide/attach/detach

Test: ./gradlew connectedCheck in fragment/

Change-Id: Id7699ef6f9c5bab3b37ab9710ad897d8556adaed
5 files changed