Reputation: 45
(https://i.sstatic.net/TyQ2P.png)
How can I format the navigation drawer icon (seen on the left) so I can move it to the right or add padding?
I've tried changing the format within the styles; however, that doesn't seem to work.
Upvotes: 1
Views: 702
Reputation: 5105
ActionBarDrawerToggle(<Activity>, <DrawerLayout>, R.drawable.main_icon, 0, 0);
drawable/main_icon.xml
:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/your_icon" android:left="10dp" />
</layer-list>
Then adjust the margins android:left
, android:right
etc.
Upvotes: 4