Я не могу увидеть текст флажков внутри scrollView

1

Я застрял в течение нескольких часов в этой проблеме.

Когда я запускаю код, я вижу флажки внутри scrollView, но я не вижу их текст описания.

Например, мне нужно что-то подобное

Изображение 174551

В моем приложении я могу видеть только флажки и ничего больше.

Мой XML файл

<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"
    android:background="#000000" >

    <ScrollView
        android:id="@+id/myScrollLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" >

        <LinearLayout
            android:id="@+id/linearStoScroll"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:isScrollContainer="true"
            android:orientation="vertical" >

            <CheckBox
                android:id="@+id/Sunday"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/Sunday" />

            <CheckBox
                android:id="@+id/Monday"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/Monday" />
            <CheckBox
                android:id="@+id/Tuesday"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/Tuesday" />
            <CheckBox
                android:id="@+id/Wednesday"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/Wednesday" />
            <CheckBox
                android:id="@+id/Thursday"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/Thursday" />
            <CheckBox
                android:id="@+id/Friday"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/Friday" />
            <CheckBox
                android:id="@+id/Saturday"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/Saturday" />
        </LinearLayout>
    </ScrollView>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignBottom="@id/myScrollLayout">

        <Button
            android:id="@+id/ok_button_date"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:onClick=""
            android:text="OK" />

        <Button
            android:id="@+id/cancel_button_date"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
           android:layout_weight="1"
            android:onClick=""
            android:text="Cancel" />
    </LinearLayout>

</RelativeLayout>

Спасибо /mkounal

  • 0
    Вы можете опубликовать свой скриншот .. как это происходит?
Теги:
checkbox
scrollview

1 ответ

3
Лучший ответ

по умолчанию цвет текста в андроиде черный. И вы добавили макет Backcolor как черный. Так как же это видно?

Пожалуйста, измените цвет текста флажков на белый

android:textColor = "#FFFFFF"

Ещё вопросы

Сообщество Overcoder
Наверх
Меню