-1
我要讓像自由職業者的應用程序導航漢堡包圖標下的背景圖像漢堡圖標的背景圖像工具欄
我試過了代碼,但圖像看起來正確的標題文字的
<android.support.v7.widget.Toolbar
android:id="@+id/appBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimary"
android:minHeight="?attr/actionBarSize"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/tb_ic"
android:scaleType="center"
android:src="@drawable/ic_toolbar_img" />
</android.support.v7.widget.Toolbar>
如何實現這一目標?
看這個問題http://stackoverflow.com/questions/26449082/custom-icon-in-android-toolbar – PMateus
這不是什麼在說什麼。 – Mohamed