在父控件 添加 android:clipChildren=“false”
通过子控件 android:layout_marginTop="-15dp" 方式来超父控件 若是没有超出继续在包含这个父控件的父控件里添加android:clipChildren=“false” 知道超出为止
<RelativeLayout
android:layout_width="@dimen/x200"
android:layout_height="@dimen/y88"
android:layout_marginLeft="@dimen/y80"
android:clipChildren="false">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_centerInParent="true"
android:background="@drawable/jianbian2"
android:gravity="center"
android:src="@mipmap/strong_img_position"
android:text="1250"
android:textColor="@color/white"
android:textSize="@dimen/x54" />
<ImageView
android:layout_width="@dimen/y80"
android:layout_height="@dimen/y80"
android:layout_alignParentRight="true"
android:layout_marginRight="-20dp"
android:layout_marginTop="-15dp"
android:src="@mipmap/ic_launcher" />
</RelativeLayout>