由于2个控件微调器和radioButton而发生java错误
扩展AppCompatActivity时,微调器中是否会出错?
找不到类的“安卓”。小装置。主题SpinNerAdapter',引用自方法安卓。支持v7。小装置。AppCompatSpinner$DropDownAdapter。
扩展活动时,radioButton中是否会出现错误?
膨胀二进制xml文件中的期望值
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.dipali.hindujodidar/com.example.dipali.hindujodidar.activity.ActivityRegisterOtherDetails}: 安卓.view.InflateException: Binary XML file line #72: Error inflating class 安卓.widget.RadioButton
XML布局文件
<ScrollView
xmlns:安卓="http://schemas.安卓.com/apk/res/安卓"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content">
<LinearLayout
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content"
安卓:orientation="vertical"
安卓:gravity="center"
安卓:layout_marginTop="10dp"
安卓:layout_marginBottom="10dp"
安卓:layout_marginLeft="10dp"
安卓:layout_marginRight="10dp">
<TextView
安卓:text="Other Details"
安卓:layout_marginTop="10dp"
安卓:textColor="@color/orange"
安卓:textSize="@dimen/heading"
安卓:textStyle="bold"
安卓:layout_width="wrap_content"
安卓:layout_height="wrap_content" />
<ImageView
安卓:id="@+id/line"
安卓:src="@mipmap/heading"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content" />
<安卓.support.design.widget.TextInputLayout
安卓:id="@+id/txtHeightInputLayout"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content">
<EditText
安卓:id="@+id/edtHeightInFeet"
安卓:hint="Height In Feet"
安卓:inputType="text"
安卓:textSize="@dimen/edt"
安卓:layout_marginTop="5dp"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content"/>
</安卓.support.design.widget.TextInputLayout>
<安卓.support.design.widget.TextInputLayout
安卓:id="@+id/txtComplexionInputLayout"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content">
<EditText
安卓:id="@+id/edtComplexion"
安卓:hint="Complexion"
安卓:textSize="@dimen/edt"
安卓:inputType="text"
安卓:layout_marginTop="5dp"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content" />
</安卓.support.design.widget.TextInputLayout>
<TextView
安卓:id="@+id/txtSpectacle"
安卓:textSize="@dimen/edt"
安卓:layout_marginTop="10dp"
安卓:text="Spectacle"
安卓:textColor="@color/colorPrimary"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content" />
<RadioGroup
安卓:id="@+id/rgSpectacle"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content"
安卓:orientation="horizontal">
<RadioButton
安卓:id="@+id/rbSpectacleYes"
安卓:textSize="@dimen/txt"
安卓:text="Yes"
安卓:checked="true"
安卓:layout_width="155dp"
安卓:layout_height="wrap_content"/>
<RadioButton
安卓:id="@+id/rbSpectacleNO"
安卓:text="No"
安卓:textSize="@dimen/txt"
安卓:layout_width="wrap_content"
安卓:layout_height="wrap_content" />
</RadioGroup>
<TextView
安卓:id="@+id/txtPhysicalDisability"
安卓:textSize="@dimen/txt"
安卓:layout_marginTop="10dp"
安卓:text="Physical Disability"
安卓:textColor="@color/colorPrimary"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content" />
<RadioGroup
安卓:id="@+id/rgPhysicalDisability"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content"
安卓:orientation="horizontal">
<RadioButton
安卓:id="@+id/rbPhysicaDisabilityYes"
安卓:textSize="@dimen/txt"
安卓:text="Yes"
安卓:checked="true"
安卓:layout_width="155dp"
安卓:layout_height="wrap_content"/>
<RadioButton
安卓:id="@+id/rbPhysicalDisabilityNO"
安卓:text="No"
安卓:textSize="@dimen/txt"
安卓:layout_width="wrap_content"
安卓:layout_height="wrap_content" />
</RadioGroup>
<安卓.support.design.widget.TextInputLayout
安卓:id="@+id/txtHobbiesInputLayout"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content">
<EditText
安卓:id="@+id/edtHobbies"
安卓:hint="Hobbies"
安卓:inputType="text"
安卓:textSize="@dimen/edt"
安卓:layout_marginTop="5dp"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content"/>
</安卓.support.design.widget.TextInputLayout>
<LinearLayout
安卓:orientation="vertical"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content">
<Spinner
安卓:id="@+id/spRashi"
安卓:spinnerMode="dropdown"
安卓:layout_gravity="center"
安卓:scrollbarSize="@dimen/spinner"
安卓:layout_marginTop="10dp"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content">
</Spinner>
</LinearLayout>
<TextView
安卓:id="@+id/txtNRI"
安卓:textSize="@dimen/txt"
安卓:text="NRI"
安卓:textColor="@color/colorPrimary"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content" />
<RadioGroup
安卓:id="@+id/rgNRI"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content"
安卓:orientation="horizontal">
<RadioButton
安卓:id="@+id/rbNRIYes"
安卓:textSize="@dimen/txt"
安卓:text="Yes"
安卓:checked="true"
安卓:layout_width="155dp"
安卓:layout_height="wrap_content"/>
<RadioButton
安卓:id="@+id/rbNRINo"
安卓:text="No"
安卓:textSize="@dimen/txt"
安卓:layout_width="wrap_content"
安卓:layout_height="wrap_content" />
</RadioGroup>
<Spinner
安卓:id="@+id/spBloodGroup"
安卓:scrollbarSize="@dimen/spinner"
安卓:layout_marginTop="10dp"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content">
</Spinner>
<Spinner
安卓:id="@+id/spCaste"
安卓:layout_width="match_parent"
安卓:scrollbarSize="@dimen/spinner"
安卓:layout_weight="1"
安卓:layout_marginTop="10dp"
安卓:layout_height="wrap_content">
</Spinner>
<Spinner
安卓:id="@+id/spMaritalStatus"
安卓:scrollbarSize="@dimen/spinner"
安卓:layout_marginTop="10dp"
安卓:layout_weight="1"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content">
</Spinner>
<安卓.support.design.widget.TextInputLayout
安卓:id="@+id/txtExpectionInputLayout"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content">
<EditText
安卓:id="@+id/edtExceptions"
安卓:lines="4"
安卓:textSize="@dimen/edt"
安卓:hint="Expectations"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content" />
</安卓.support.design.widget.TextInputLayout>
<TextView
安卓:id="@+id/txtValidation2"
安卓:textSize="@dimen/txt"
安卓:textStyle="normal"
安卓:layout_marginTop="10dp"
安卓:layout_marginBottom="10dp"
安卓:textColor="#ef0c0c"
安卓:layout_width="match_parent"
安卓:layout_height="wrap_content" />
<Button
安卓:id="@+id/btnSecondNext"
安卓:layout_gravity="center"
安卓:text="Next"
安卓:textColor="@color/white"
安卓:background="@color/orange"
安卓:textSize="@dimen/btntxt"
安卓:layout_marginBottom="10dp"
安卓:layout_width="wrap_content"
安卓:layout_height="wrap_content" />
</LinearLayout>
</ScrollView>
共 (0) 个答案