0

I want to make to cover action bar when navigation drawer appears. but i know only to stay action bar when navigation drawer appears.(and i know that this is standard form at google) i didn’t find stackoverflow perfectly, because I cannot speak english well. Now i made (picture 1)form, How do i want to make to cover action bar when navigation drawer appears as (pic2) form?

pic 1 : https://imageshack.com/i/ex3qfeOIp

pic 2: https://imageshack.com/i/p88OOwyTp

Mhwan bae
  • 15
  • 1

1 Answers1

-2

Its kind of easy.First u need to add listener to your navigation drawer setDrawerListener in that u make a listener of DrawerListener class. This class has methods onDrawerClosed() and onDrawerOpened(). In these methods u can hide the action bar or choose to show the action bar appropriately using getActionBar().hide() or getActionBar().show()

Deb
  • 2,431
  • 3
  • 18
  • 28
  • I don't think that's what @Mhwan asked. The idea is to ver the action bar, not to hide it. Besides, hiding the action causes a full redraw of the layout. – Pierre Rust Jan 14 '15 at 23:00
  • Please refer to images for what has been asked – vishal dharankar Jun 14 '15 at 07:38
  • please make me understand what he really wants, as per the image he completely hid the action bar and displayed the navigation panel – Deb Jun 22 '15 at 16:25