본문 바로가기
안드로이드

안드로이드 custom app bar left margin 없애는 법

by Kwoncorin 2020. 8. 17.
728x90

 

 

Toolbar

 

안드로이드 스튜디오에서 custom toolbar를 만들 시 아래 사진처럼 left margin이 생기게 됩니다.

 

이럴 때 left margin을 없애고 싶다면

 

 

contentinsert 속성

위 코드처럼 contentInsertLeft, contentInsertStart를 0dp로 설정해주세요

 

 

그러면 손쉽게 custom toolbar에서 left margin을 없앨 수 있습니다.

728x90