Align three elements with RelativeLayout

android

Solution

put this inside Textview

 android:layout_centerHorizontal="true"

Problem

I'm trying to align three elements, the first at left edge (Imageview), in the center a Textview as a tittle and to the right edge a Imageview. This is the 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" android:background="@color/fondo_main" android:orientation="vertical" > <RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="match_parent" android:layout_height="0dp" android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="5dp" android:layout_weight="1" > <ImageView android:id="@+id/buttonback" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:src="@drawable/back" /> <TextView android:id="@+id/tittle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Tittle" android:textColor="@color/azul_asde" android:src="@drawable/upload" /> <ImageView android:id="@+id/buttonupload" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:src="@drawable/upload" /> </RelativeLayout> </LinearLayout> ``` How can I align tittle at center?

Original source