Assume That an app Firstly List all post in a ListView
in Fragment
( 1st ) with a custom adapter. and that custom adapter data is
You can explicitly force the back button state to not be added to the back stack with transaction.addToBackStack(null)
. You can then override the back button (inside onBackPressed()
) and insert whatever behavior you need. I'm not sure I'm following everything above, but I think that this combo will take care of the fundamental issue you address.