1
은 '나는 RelativeLayout의안드로이드 상대 레이아웃 배경 충돌 잘
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:background="@drawable/my_shape_normal"
android:onClick="startTestTillError">
및 my_shape_normal이 예외가 발생로드에
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="#FFFFFF00"
android:endColor="#80FFFFFF"
android:angle="120"/>
<padding android:left="7dp"
android:top="7dp"
android:right="7dp"
android:bottom="7dp" />
<corners android:radius="8dp" />
</shape>
로 정의되어 있습니다. "android : background"를 제거하면 모든 것이 완벽하게 작동합니다. my_shape_normal의 문제점은 무엇입니까?
응용 프로그램이 충돌하는 경우 항상 LogCat 오류를 포함하는 것이 가장 좋습니다. – Sam