samedi 30 juillet 2016

check box text not appearing in android studio

Check box text not appearing in my layout file in android studio. This is the xml code.layout image. the text "checkbox" only appearing. have used styles for check boxes and placed the check boxes inside the scroll view.

<ScrollView
    android:layout_width="fill_parent"
    android:layout_height="match_parent"
    android:fillViewport="false"
    android:orientation="vertical"
    android:padding="5dp">


    <LinearLayout style="@style/QuestionSetStyle">

        <TextView
            style="@style/QuestionStyle"
            android:text="@string/text_Q1" />

        <LinearLayout style="@style/AnswerSetStyle">

            <CheckBox
                android:id="@+id/cb_1_a"
                style="@style/CheckBox"
                android:textColor="#ffff00"
                android:text="@string/text_FRANCE" />

            <CheckBox
                android:id="@+id/cb_1_b"
                style="@style/CheckBox"
                android:text="@string/text_BEIJING" />

        </LinearLayout>

        <LinearLayout style="@style/AnswerSetStyle">


            <CheckBox
                android:id="@+id/cb_1_c"
                style="@style/CheckBox"
                android:text="@string/text_NEWDELHI" />


            <CheckBox
                android:id="@+id/cb_1_d"
                style="@style/CheckBox"
                android:text="@string/text_SEOUL" />

        </LinearLayout>
    </LinearLayout>


</ScrollView>




Aucun commentaire:

Enregistrer un commentaire