android :Атрибут видимости в настройках xml не работает? (Андроид 2.3)

Возьмем, к примеру, этот небольшой файл preference.xml:

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sig_title" xmlns:android="http://schemas.android.com/apk/res/android">
<ListPreference android:entries="@array/text_display_entries" android:title="@string/sig_style" android:key="text_style" android:entryValues="@array/text_display_values" />
<CheckBoxPreference android:title="@string/custom_font" android:key="tweaks_text" />
<CheckBoxPreference android:title="@string/col_random" android:key="random_color_pref" />
<CheckBoxPreference android:visibility="invisible" android:enabled="false" android:title="@string/sig_show" android:key="show_sig" />
</PreferenceScreen>

Атрибут android :visibility="invisible" для последнего флажка не работает; этот атрибут (или исчез в этом отношении )не работает для предпочтений?

У меня нет ничего в коде, чтобы возиться с его видимостью, просто любопытно, почему это не работает.

8
задан BlooregardQKazoo 3 August 2012 в 10:36
поделиться