[英]how to add a back arrow button of toolbar on to the imageview
像这样编辑Toolbar
。
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" >
<ImageView
android:id="@+id/back_button"
android:layout_width="25dp"
android:layout_height="25dp"
android:src="@drawable/ic_back_button" />
</android.support.v7.widget.Toolbar>
会是这样。
另外,您将从此处获得图标。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.