이미지가 로고 인 툴바가 있으며 로고가 중앙에 있습니다. 그러나 내비게이션 서랍을 넣으면 내비게이션 서랍 버튼이 있기 때문에 로고가 오른쪽으로 이동했습니다. 툴바의 탐색 서랍 버튼을 중심으로 로고를 중앙에 배치하는 방법은 무엇입니까?안드로이드 툴바 이미지 네비게이션 서랍 버튼을 중심으로
감사합니다.
내 코드
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light">
<ImageView
android:layout_width="match_parent"
android:layout_height="25dp"
android:src="@drawable/logo"/>
</android.support.v7.widget.Toolbar>
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimaryDark"
app:tabGravity="fill"
app:tabMode="fixed" />
</android.support.design.widget.AppBarLayout>
0은 ... UI가 –