0

How to remove pointed icon in Navigation Drawer, I just playing with Navigation Drawer, I just wanted to maintain only one icon and the title in center. enter image description here

enter image description here

Laxmeena
  • 780
  • 2
  • 7
  • 28

1 Answers1

1

put this in your onCreate() method.

    getActionBar().setIcon(new ColorDrawable(getResources().getColor(android.R.color.transparent)));  
Milan Maharjan
  • 4,156
  • 1
  • 21
  • 28
  • Thanks a lot it's working. do me a favour i have to set that navigation drawer title in the center. – Laxmeena May 14 '14 at 06:17
  • I am not sure about that, but may be this will be a help http://stackoverflow.com/questions/12387345/how-to-align-actionbar-title-center-in-android and dont forget to accept my answer if it did the trick. thanks :) – Milan Maharjan May 14 '14 at 06:23
  • @Jay, hey buddy it's working . but i have to set the navigation drawer title in the center. – Laxmeena May 14 '14 at 06:36
  • If you want to title to center then create your own custom view and set title to center and you can add that custom view to actionbar. – Jayesh Khasatiya May 14 '14 at 06:42
  • check below link http://stackoverflow.com/questions/12387345/how-to-align-actionbar-title-center-in-android?lq=1 – Jayesh Khasatiya May 14 '14 at 06:48