android - Custom ActionBar resulting in overlapping default ActionBar -


hello wanted add custom actionbar application in android using method:

   linearlayout ll_q = (linearlayout) findviewbyid(r.id.qtitlebar);    getsupportactionbar().setdisplayoptions(actionbar.display_show_custom | actionbar.display_use_logo);    getsupportactionbar().setcustomview(r.layout.question_titlebar); 

the result is:

how rid of grey area in actionbar , menu button?

if using android studio following:

  1. extend class activity instead of actionbaractivity.
  2. open app's manifest file , change

        android:theme="@android:style/theme.black.notitlebar.fullscreen"  

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -