Set horizontal center to a textView which is in relativeLyout into a linear layout

view full story

http://stackoverflow.com – I'm using a linear layout in order to place my different element in my view. In this one, I put a relative layout to set horizontal center to a textView. this my view's code : <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.selectionModele.seguin_android.SelectionModeleActivity" android:background="@drawable/selection_modele_fond" android:orientation="vertical"> <ImageView android:id="@+id/imageView1" android:layou (HowTos)