Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Editable List in Preferences

Is there a way to add an editable List to a preference screen? The user should be able to add and remove entries from the list. Or do I have to make a separate screen and save it into the preferences manually?

Edit:

    <PreferenceScreen
      xmlns:android="http://schemas.android.com/apk/res/android">
        <PreferenceCategory android:summary="@string/MasterDeviceDescription" android:title="@string/MasterDeviceCat">
            <EditTextPreference android:key="@string/MasterIP" android:title="@string/MasterIPLabel"></EditTextPreference>
            <CheckBoxPreference android:key="@string/ManualDevice" android:title="@string/ManualDeviceLabel"></CheckBoxPreference>
        </PreferenceCategory>
        <PreferenceCategory android:title="@string/ManualDeviceCat" android:summary="@string/ManualDeviceDescription">
            <!-- HERE -->
        </PreferenceCategory>

    </PreferenceScreen>

It should be used from a preference screen which is called from a menu.

Edit 2

I have to use it to get an optional list of user-created data for use by the application.

like image 932
SBoss Avatar asked Nov 13 '22 13:11

SBoss


1 Answers

There isn't any default control.

like image 111
roger Avatar answered Nov 16 '22 03:11

roger