【发布时间】:2013-06-07 22:18:20
【问题描述】:
我收到以下错误: 传递 XML 时出错:未绑定前缀 属性缺少 android 命名空间前缀 我三合会添加:xmlns:android但它不会识别它 代码:
<RadioGroup
andorid:orientation = "vertical"
android:layout_width = "fill_parent"
android:layout_height = "wrap_content"
andorid:layout_weight = "1"
>
<RadioButton
android:id="@+id/radioButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="RadioButton" />
<RadioButton
android:id="@+id/radioButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="RadioButton" />
<RadioButton
android:id="@+id/radioButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="RadioButton" />
</RadioGroup>
【问题讨论】:
-
你不能为每个按钮设置相同的 id,使用不同的 id´s
-
只做其他事情大约 10 分钟,然后再次查看文件(提示:拼写)
-
@MichaelButscher 非常感谢,我盯着这段代码看了 20 分钟,终于明白了
标签: android xml radio-group