app:contentInsetStart="0dp"
toolbar xml에서 위에 한줄 넣어주면됨... 아래것 안해도됨.
경로 : android-support-v7-appcompat 프로젝트
android-support-v7-appcompat/values/styles_base.xml
변경전
<style name="Base.Widget.AppCompat.Toolbar" parent="android:Widget">
<item name="titleTextAppearance">@style/TextAppearance.Widget.AppCompat.Toolbar.Title</item>
<item name="subtitleTextAppearance">@style/TextAppearance.Widget.AppCompat.Toolbar.Subtitle</item>
<item name="android:minHeight">?attr/actionBarSize</item>
<item name="titleMargins">4dp</item>
<item name="maxButtonHeight">56dp</item>
<item name="collapseIcon">?attr/homeAsUpIndicator</item>
<item name="collapseContentDescription">@string/abc_toolbar_collapse_description</item>
<item name="contentInsetStart">16dp</item>
</style>
변경후
<style name="Base.Widget.AppCompat.Toolbar" parent="android:Widget">
<item name="titleTextAppearance">@style/TextAppearance.Widget.AppCompat.Toolbar.Title</item>
<item name="subtitleTextAppearance">@style/TextAppearance.Widget.AppCompat.Toolbar.Subtitle</item>
<item name="android:minHeight">?attr/actionBarSize</item>
<item name="titleMargins">4dp</item>
<item name="maxButtonHeight">56dp</item>
<item name="collapseIcon">?attr/homeAsUpIndicator</item>
<item name="collapseContentDescription">@string/abc_toolbar_collapse_description</item>
<item name="contentInsetStart">0dp</item>
</style>
참고1 : http://stackoverflow.com/questions/26455027/android-api-21-toolbar-padding
'Android Dev' 카테고리의 다른 글
[Mac]Android Studio 힙메모리 늘리기 (0) | 2015.09.11 |
---|---|
adb 명령어 (0) | 2015.02.11 |
[안드로이드] 인앱결제 구독(Subscriptions) 자동청구 확인 방법 (4) | 2014.12.03 |
[안드로이드] Android SDK Manager가 안보일때 (0) | 2014.11.11 |
[안드로이드] EditText 커서(포커스) 끝으로 보내기 (2) | 2014.10.16 |