<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/top_bg"
android:paddingBottom="10dip"
android:paddingTop="10dip" >
<ImageButton
android:id="@+id/left_button_ImageButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:padding="10dip"
android:background="@null"
android:contentDescription="@null"
android:src="@drawable/btn_search" />
<TextView
android:id="@+id/title_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/dish_title"
android:textColor="@color/black"
android:textSize="@dimen/titlesize" >
</TextView>
<ImageButton
android:id="@+id/right_button_ImageButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="10dp"
android:padding="10dip"
android:background="@null"
android:contentDescription="@null"
android:src="@drawable/btn_manage"/>
</RelativeLayout>
其中下面三句是关键
android:padding="10dip"
android:background="@null"
android:contentDescription="@null"