<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<gradient
android:layout_width="match_parent"
android:angle="270"
android:centerColor="#4ccbff"
android:endColor="#24b2eb"
android:startColor="#24b2eb" />
<corners android:radius="5dp" />
</shape>
누락 된 행은 "layout_height
속성이없는 요구"NO 4로이드 - 필수 layout_attribute 위 코드와
&
온 "layout_height
와 layout_width
속성이없는 불필요"입니다 라인 no .
누락 된 속성을 알려줍니다. 첫 번째 경우에는 layout_height 인 것처럼 보이고 두 번째 경우에는 layout_height와 layout_width가 모두 나타납니다. –
두 번째 경우에는 두 레이아웃 모두에 오류가 표시됩니다. android : layout_height = "wrap_content"코드에 포함 시켰지만 동일한 오류를 보여줍니다. –
높이가 아닌 layout_height입니다. –