[Android:想要在标题左侧的活动和地点菜单中显示标题。有人可以帮助我如何继续实施它。请参阅附件截图。如果有任何链接将有所帮助。
谢谢] 1
试试吧。您需要在子图像视图标记中添加android:layout_gravity =“center”。
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimary">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_person"
android:layout_gravity="center"
/>
</android.support.v7.widget.Toolbar>