Đưa ví dụ tập tin preference.xml nhỏ này:android: thuộc tính hiển thị trong tùy chọn xml không hoạt động? (Android 2.3)
<?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>
Các android thuộc tính: tầm nhìn = "vô hình" đối với các hộp kiểm trước không hoạt động; thuộc tính này (hoặc đi cho rằng vấn đề) không hoạt động cho các sở thích?
Tôi không có bất kỳ thứ gì trong mã gây rối với khả năng hiển thị của nó, chỉ cần tò mò tại sao điều này không hiệu quả.