How to open an existing fragment transaction in Android?
Is Used to replace an existing fragment with new fragments from the drop-down list in the action bar?
Just in case, this is what you asked, change
FragmentTransaction ft = openFragmentTransaction();
to
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
This concept makes no sense.
If necessary, create a new FragmentTransaction , call replace() on it to indicate what needs to be replaced, then commit() transaction
FragmentTransaction
replace()
commit()
Source: https://habr.com/ru/post/1445185/More articles:Problem in sqlite with "like" in android - androidCounting by pulling data from multiple tables using multiple keys using sqlite3 - pythonHow to add odd sub-lists in Python? - pythonHow to set the z-index of points on a HighCharts scatter chart? - javascriptTouchesEnded and TouchesCancelled not called - iosListen to undo / redo event in content div value - javascriptBasemap data file file format - pythonA comprehensive review of strings that I should NOT use for local variables? - python403 restricted access with rails / apache / passenger - ruby-on-railsHTTPModules and Global.asax - ASP.NET Page Life Cycle - asp.netAll Articles