【发布时间】:2017-11-15 08:54:08
【问题描述】:
我在 RelativeLayout 中有一个 ImageView。 RelativeLayout 高度固定为 50dp,ImageView 高度大于 50dp。我希望我的 ImageView 跨越 RelativeLayout。
我附上了一个我想实现的屏幕。
<RelativeLayout
android:id="@+id/btnMenu"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#000000"
android:clipChildren="false"
android:clipToPadding="false">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:background="@drawable/home_menu"
android:layout_alignParentLeft="true"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:background="@drawable/home_logo_bottom"
android:layout_alignParentRight="true"/>
</RelativeLayout>
【问题讨论】:
标签: android android-imageview android-relativelayout