I have placed an image inside toolbar like in the below code. I did this to have an toolbar icon on the left side.
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:popupTheme="@style/ThemeOverlay.AppCompat.Light">
<ImageView
android:id="@+id/homeicon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/appicon"
android:scaleType="fitStart" />
</android.support.v7.widget.Toolbar>
I need to access the tap or click of the image in Activity.cs. It would be grateful, if you have any other way to place Toolbar icon on the leftside in xamarin forms.