Je ceci est mon xml:Définir texte au centre de AppBar
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_height="57dp"
android:layout_width="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Ranger"
android:id="@+id/logoSign"/>
</android.support.design.widget.AppBarLayout>
</RelativeLayout>
Je veux faire le TextView dans le centre de la barre d'accès. Mais je reçois ceci:
Merci pour votre aide. :)
Merci beaucoup! tu as sauvé ma journée! :RÉ –