작은 안드로이드 응용 프로그램을 개발 중이고 레이아웃에 문제가 있습니다. XML에서 오류를 찾으려고했지만 찾을 수 없습니다 ...레이아웃 정의입니다. "layout_width 속성을 제공해야합니다."
오류 I 당신은 폭에서 지정할 필요가
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="100" >
<TextView android:id="@+id/nombreEvento"
android:layout_height="fill_parent"
android:layout_weight="70"
/>
<TextView android:id="@+id/moneda"
android:layout_height="fill_parent"
android:layout_weight="10"
/>
<TextView android:id="@+id/totalEvento"
android:layout_height="wrap_content"
android:layout_weight="20"
/>
</LinearLayout>
<TextView android:id="@+id/fecha"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
무엇이 다른가요? –
@ AlikElzin-kilaka 중첩 된 텍스트 뷰의 layout_WEIGHT ...에는 layout_WIDTH도 있어야합니다. – ComeIn