我编译时不断收到此错误:在'android'包中找不到属性'weight'的资源标识符.我怎样才能解决这个问题?码:
<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="match_parent"
>
<TextView
android:text="@string/enter_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<EditText
android:hint="@string/hint_one"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:weight="1"
/>
<EditText
android:hint="@string/hint_two"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:weight="1"
/>
<Button
android:text="@string/send_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3339 次 |
| 最近记录: |