views:

36

answers:

1

The preference activity gets inflated by invoking

addPreferencesFromResource(R.xml.preferences);

and here are the preferences.xml:

<PreferenceCategory android:title="@string/pref_categ_update_label">
    <ListPreference android:title="@string/pref_label"
        android:key="update_interval" 
        android:entries="@array/update_names" android:entryValues="@array/update_values" />


</PreferenceCategory>


<PreferenceCategory android:title="@string/pref_categ_evernote_label">

    <EditTextPreference android:title="@string/pref_dialog_edit_username"
        android:key="prefUsername" 
        android:positiveButtonText="@string/save_pref"
        android:negativeButtonText="@string/cancel_pref"  />

    <EditTextPreference android:title="@string/pref_dialog_edit_password"
        android:key="prefPassword"  
        android:positiveButtonText="@string/save_pref"
        android:negativeButtonText="@string/cancel_pref"             
        android:password="true" />

</PreferenceCategory>

everything looks okay, but EditTextPreference entries (2 and 3) have arrow-down icons next to them, just like ListPreference (1) does. Why is it so and how can I remove these icons as they look irrelevant?

The screenshot is here: http://i.imgur.com/BZUr7.png

A: 

The arrows are there to let you know that clicking on that preference is going to take you somewhere else. In the case of the ListPreference it indicates that it goes to another "screen" in the case of the EditTextPreference it indicated that it is going to pop up a dialog. If yo don't like it you can create a new style for it and use that instead.

CaseyB
Thanks a lot. I thought these arrows were layout bugs)
aiboman