在如下的xml配置文件中,起初对于android:layout_marginBottom,即需要控制imagebutton对于向下的间距,则不能working。
<RelativeLayout
android:id="@+id/bar"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="@drawable/ic_bar_bg"
android:layout_alignParentRight="true"
android:orientation="horizontal" >
<ImageButton
android:id="@+id/gallery"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginBottom="10dp"
android:background="@drawable/ic_frame"/>
</RelativeLayout>
</