<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RadioButton
android:id="@+id/radioButton2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="boy">
<RadioButton
android:id="@+id/radioButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="girl"></RadioButton>
</RadioGroup>
<CheckBox
android:id="@+id/checkbox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="read book"/>
<CheckBox
android:id="@+id/checkbox2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="movie"/>
<CheckBox
android:id="@+id/checkbox3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="basketball"/>
<CheckBox
android:id="@+id/checkbox4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="music"
</LinearLayout>
一運行就顯示這個錯誤
還有一個問題是我在design界面能看到我的東西 打開虛擬機就看不見了
求大神解答 困擾死我了
uj5u.com熱心網友回復:
<CheckBox
android:id="@+id/checkbox4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="music"></CheckBox>
uj5u.com熱心網友回復:
或者是 <CheckBoxandroid:id="@+id/checkbox4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="music"/>
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/47279.html
標籤:Android
