2014-10-29 80 views
0

我想爲導航抽屜設置左邊距,就像在新玩市場中一樣。 enter image description hereAndroid導航抽屜左邊距

我使用ActionBarDrawerToggle從android.support.v7,但我不能在左邊的抽屜指標邊緣。 enter image description here

這可能嗎?

更新: 是的,用工具欄小部件,我看到利潤率。但我有一個問題:這是抽屜式導航以白色爲主色調

enter image description here

但是當我使用

mDrawerToggle.setDrawerIndicatorEnabled(false); 
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED); 

我看到後面的黑色

enter image description here

圖標可我以編程方式讓按鈕白色?或只使用自定義圖標?

+1

最簡單的方法是使用drawable中的透明度..也可以幫助您http://stackoverflow.com/a/10120562/1084764 – Raykud 2014-10-29 06:52:51

回答

0

AFAIK,他們使用工具欄而不是操作欄。在Playstore以及播放音樂。在工具欄中,它可以自定義,但是在操作欄中,它的默認位置是默認的。