你可以做这样的事情,但这是一个黑客而不是推荐的解决方案。根据您的要求调整宽度和边距
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<View
android:layout_width="150dp"
android:layout_height="100dp"
android:background="#EC8075"
android:layout_alignParentRight="true"/>
<View
android:layout_width="200dp"
android:layout_height="150dp"
android:background="#fff"
android:layout_alignParentRight="true"
android:layout_marginRight="120dp"
android:rotation="-15"/>
</RelativeLayout>
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句