Home > Mobile >  Inheritance FragmentActivity setSupportActionBar error result in the Toolbar
Inheritance FragmentActivity setSupportActionBar error result in the Toolbar

Time:10-04

Inheritance FragmentActivity leads to the Toolbar setSupportActionBar error, because want to use fragments so only inherit FragmentActivity, then appeared the error, solving the

CodePudding user response:

FragmentActivity into AppCompatActivity

CodePudding user response:

(getActivity (AppCompatActivity)). SetSupportActionBar (toolbar);
Have a try
  • Related