안드로이드 애플 리케이션을 처음 사용하는 개발자에게 안드로이드 개발자 사이트에있는 가이드를 따르고 있지만, 코드를 실행하고 싶을 때 "오류가 없습니다"라는 오류 메시지가 나타납니다. 속성 layout_width를 위해 ... 여기 선형 레이아웃 오류 리소스 android : layout_width
이<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<EditText android:id="@+id/edit_message"
android:Layout_weight="1"
android:Layout_width="wrap_content"
android:Layout_height="wrap_content"
android:hint="@string/edit_message"/>
<Button
android:Layout_width="wrap_content"
android:Layout_height="wrap_content"
android:text="@string/button_send" />
의'layout'하지'Layout' – Raghunandan
사용 THS 안드로이드는 : @Raghunandan로 layout_width = "wrap_content"는 –
내가 당신의'EditText'와'Button'에 오타가 있다고 생각했다. 작은 글자로 'android : layout_width'를 사용했습니다. –