androidnavigation-drawerdrawerlayout

Change Navigation Drawer Icon and Text Spacing


I am wondering how do we change the spacing between the icon and the text?

Is it doable?

Any thoughts?

Thank you

enter image description here


Solution

  • You will need another layout which you will inflate. In the layout, you can set the margin to what you want. Inflater allows you to adapt a layout to a view. check this out http://developer.android.com/reference/android/view/LayoutInflater.html or this http://khajanpndey.blogspot.com.ng/2012/12/android-layoutinflater-tutorial.html

    Whichever view you are using, checkout how you can inflate the view. Hope this help.