I am trying to align imageview to the extreme left of my toolbar but it's not happening. I tried other solutions on stackoverflow but none is working for me
<android.support.v7.widget.Toolbar
android:id="@+id/my_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="#fff"
android:elevation="4dp"
android:gravity="start"
android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="10">
<ImageView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:layout_weight="2"
android:padding="10dp"
android:src="@drawable/app_icon_book_sumary_one" />
</LinearLayout>
</android.support.v7.widget.Toolbar>
Adding these 2 lines inside toolbar worked
app:contentInsetLeft="0dp"
app:contentInsetStart="0dp"