There is an activation with the driver, when the application starts, the first fragment starts from the driver. It displays foliage, when you click on an element of foliage
private void openFragmentMineral(String mineral) { ScaleFragmentMineral fScaleFragmentMineral = new ScaleFragmentMineral(); FragmentManager fragmentManager = getFragmentManager(); FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); fragmentTransaction.replace(R.id.mainFrame, fScaleFragmentMineral); Bundle bundle = new Bundle(); bundle.putString(KEY_MIN, mineral); fScaleFragmentMineral.setArguments(bundle); fragmentTransaction.commit(); } a fragment opens
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { myView = inflater.inflate(R.layout.fragment_scale_mineral, container, false); // получаем значение Bundle bundle = getArguments(); if (bundle != null) { strNameMineral = bundle.getString(KEY_MIN); if (strNameMineral != null) { // меняем заголовок тулбара ((AppCompatActivity) getActivity()).getSupportActionBar().setTitle(strNameMineral); } } return myView; } here in it, instead of the back button (return to the parent fragment with foliage), the driver menu button is shown. The question is actually how to remove the driver menu button and instead put the arrow back?