私はRelativeLayout内にImageViewを持っています。 RelativeLayout高さは50dpに固定され、ImageViewの高さは50dpより大きい。 ImageViewがRelativeLayoutを横切るようにしたい。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>
あなたは「相対レイアウトを渡る」とはどういう意味ですか? – Henry
私はカスタムデザインの要件を持って、私は自分が望む写真を添付しました。 ありがとう –
ありがとうございます。私の答えをチェックアウトする。この "横断"をしたい場合は、ImageViewを子として持つことはできません。 RelativeLayoutの外に持ってきてください。 – Henry