android - Title is not showing in the ActionBar only the logo is showing (Have tried many solutions) -


in app, changed styles , actionbar got disappeared. have used these lines brought actionbar , icon :

   getsupportactionbar().setdisplayshowhomeenabled(true);    getsupportactionbar().setlogo(r.drawable.ic_launcher);    getsupportactionbar().setdisplayuselogoenabled(true); 

but still title of app not shown actionbar.

hare style.xml file :

   <style name="theme.brintin" parent="@style/theme.appcompat.light.darkactionbar">     <item name="actionbaritembackground">@drawable/selectable_background_brintin</item>     <item name="popupmenustyle">@style/popupmenu.brintin</item>     <item name="dropdownlistviewstyle">@style/dropdownlistview.brintin</item>     <item name="actionbartabstyle">@style/actionbartabstyle.brintin</item>     <item name="actiondropdownstyle">@style/dropdownnav.brintin</item>     <item name="actionbarstyle">@style/actionbar.solid.brintin</item>     <item name="actionmodebackground">@drawable/cab_background_top_brintin</item>     <item name="actionmodesplitbackground">@drawable/cab_background_bottom_brintin</item>     <item name="actionmodeclosebuttonstyle">@style/actionbutton.closemode.brintin</item>     <item name="android:edittextbackground">@drawable/apptheme_edit_text_holo_light</item>     <item name="actionoverflowbuttonstyle">@style/theme.brintin.overflow</item>     <item name="android:listviewstyle">@style/theme.brintin.lightpurplebackground</item>     <item name="android:gridviewstyle">@style/theme.brintin.lightpurplebackground.gridview</item>     <!-- light.darkactionbar specific -->     <item name="actionbarwidgettheme">@style/theme.brintin.widget</item>  </style>  <style name="theme.brintin.lightpurplebackground.gridview">     <item name="android:padding">@dimen/user_grid_spacing</item> </style>  <style name="theme.brintin.lightpurplebackground">     <item name="android:background">@color/light_purple_background</item>     <item name="android:divider">@null</item> </style>  <style name="theme.brintin.overflow" parent="widget.appcompat.actionbutton.overflow">     <item name="android:src">@drawable/ic_menu_overflow</item> </style>  <style name="actionbar.solid.brintin" parent="@style/widget.appcompat.light.actionbar.solid.inverse">     <item name="background">@drawable/ab_solid_brintin</item>     <item name="backgroundstacked">@drawable/ab_stacked_solid_brintin</item>     <item name="backgroundsplit">@drawable/ab_bottom_solid_brintin</item>     <item name="progressbarstyle">@style/progressbar.brintin</item>     <item name="android:titletextstyle">@style/actionbar.solid.brintin.titletextstyle</item> </style>  <style name="actionbar.solid.brintin.titletextstyle" parent="@style/textappearance.appcompat.widget.actionbar.title">     <item name="android:textcolor">#482c6f</item> </style>  <style name="actionbar.transparent.brintin" parent="@style/widget.appcompat.actionbar">     <item name="background">@drawable/ab_transparent_brintin</item>     <item name="progressbarstyle">@style/progressbar.brintin</item> </style>  <style name="popupmenu.brintin" parent="@style/widget.appcompat.popupmenu">     <item name="android:popupbackground">@drawable/menu_dropdown_panel_brintin</item> </style>  <style name="dropdownlistview.brintin" parent="@style/widget.appcompat.listview.dropdown">     <item name="android:listselector">@drawable/selectable_background_brintin</item> </style>  <style name="actionbartabstyle.brintin" parent="@style/widget.appcompat.actionbar.tabview">     <item name="android:background">@drawable/tab_indicator_ab_brintin</item> </style>  <style name="dropdownnav.brintin" parent="@style/widget.appcompat.spinner.dropdown.actionbar">     <item name="android:background">@drawable/spinner_background_ab_brintin</item>     <item name="android:popupbackground">@drawable/menu_dropdown_panel_brintin</item>     <item name="android:dropdownselector">@drawable/selectable_background_brintin</item> </style>  <style name="progressbar.brintin" parent="@style/widget.appcompat.progressbar.horizontal">     <item name="android:progressdrawable">@drawable/progress_horizontal_brintin</item> </style>  <style name="actionbutton.closemode.brintin" parent="@style/widget.appcompat.actionbutton.closemode">     <item name="android:background">@drawable/btn_cab_done_brintin</item> </style> 

i have tried line :

  getsupportactionbar().settitle("main activity"); 

but, still not working.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -