17 package eu.intermodalics.tango_ros_streamer.android;
19 import android.content.Context;
20 import android.preference.ListPreference;
21 import android.util.AttributeSet;
23 import java.util.ArrayList;
31 super(context, attrs);
39 public void setMapList(Map<String, String> uuidNameMap) {
40 if (uuidNameMap != null) {
41 ArrayList<String> uuids =
new ArrayList<String>();
42 ArrayList<String> names =
new ArrayList<String>();
43 for (String uuid : uuidNameMap.keySet()) {
45 names.add(uuidNameMap.get(uuid));
47 setEntries(names.toArray(
new CharSequence[names.size()]));
48 setEntryValues(uuids.toArray(
new CharSequence[uuids.size()]));
void setMapList(Map< String, String > uuidNameMap)
MapChooserPreference(Context context, AttributeSet attrs)
MapChooserPreference(Context context)