J'essaie d'aligner imageview à l'extrême gauche de ma barre d'outils, mais ce n'est pas le cas. J'ai essayé d'autres solutions sur stackoverflow, mais personne ne travaille pour moiAligner la disposition à l'extrême gauche à l'intérieur de la barre d'outils Android
<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>
cette image est-elle votre résultat? –
Copie possible de [comment supprimer la marge gauche de la barre d'outils Android?] (Https://stackoverflow.com/questions/31063962/how-to-remove-left-margin-of-android-toolbar) –