把中间一个空间透明度设为0, android:layout_weight=”1.0”
<LinearLayout
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="50dp">
<TextView
android:text="My Events"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:alpha="0"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1.0" />
<ImageView
android:src="@drawable/draw_account"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>