2016-04-13 49 views

回答

0

使用下面的图像,并将其保存到绘制得到的结果。

enter image description here

,并用下面的代码

<ImageView 
      android:id="@+id/back_arrow" 
      android:layout_width="25dp" 
      android:layout_height="25dp" 
      android:src="@drawable/ic_arrow_back" /> 
1

编辑您的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> 

它会是这样的。

enter image description here

而且,你会从here获得的图标。

+0

非常感谢你的回答 –

+0

你可以接受我的回答并投票赞成。 :) –

相关问题