I have a fragment where I toggle visibility between View1 and View 2. The flow I would like is after entering View 2 from View1 I want to be able to make View 1 visible using the back button.
Is it possible to override the back button when View2 is visible to change the visibility of View1? If not, is the only way to split this fragment into 2 fragments and use the back stack with fragment manger?