Remove Android Toolbar Navigation Drawer option

后端 未结 6 1996
一整个雨季
一整个雨季 2021-01-02 21:07

How can i remove the leftmost navigation drawer menu item on the Android Toolbar. Basically i wan\'t to contain 4 images in a horizontal fashion, Nothing else !

6条回答
  •  囚心锁ツ
    2021-01-02 21:55

    To remove the totally unfashionable margin who have the toolbar in the left side for a posible navigation icon you should do:

    toolbar.setContentInsetsAbsolute(0,0);
    

提交回复
热议问题