When I encountered the Fragment tab frame at work today, Fragmentactivity was unable to use the toolbar problem. Check a lot of information, in fact, Appcomponent inherited from Fragmentactivity, so appcomponent all the features he also have, so just let your baseactivtiy inherit appcomponent can.
Used in fragment.
((appcompatactivity) getactivity ()). Getsupportactionbar (). Settitle ();
Second, change toolbar overflow Icon
<!--fix overflow button Change button style-<style name="OverFlow"Parent="@android: Style/widget.holo.actionbutton.overflow"> <item name="android:src"> @drawable/ic_action_commit</item> </style> <!--Base application theme. -<style Name="Apptheme"Parent="Theme.AppCompat.Light.NoActionBar"> <!--toolbar (actionbar) Color--<item name="colorprimary"> @color/actioncolor</item> <!--status bar color-<item name="Colorprimarydark"> @color/actioncolor</item> <!--selected Color-<item name="coloraccent"> #F0F0F0 </item> <!--window background color-<item name="Android:windowbackground"> @android:color/white</item> <item name="Actionoverflowbuttonstyle"> @style/overflow</item> </style>
Android questions about toolbar and fragmentactivity