… | |
… | |
65 | {
|
65 | {
|
66 | // public static NavitAddressResultListActivity self_ = null;
|
66 | // public static NavitAddressResultListActivity self_ = null;
|
67 | NavitSearchResultListArrayAdapter adapter_ = null;
|
67 | NavitSearchResultListArrayAdapter adapter_ = null;
|
68 | private int selected_id = -1;
|
68 | private int selected_id = -1;
|
69 | private int selected_id_passthru = -1;
|
69 | private int selected_id_passthru = -1;
|
70 | private Boolean is_empty = true;
|
70 | // private Boolean is_empty = true;
|
71 | // public ArrayList<HashMap<Integer, search_result_entry>> result_list;
|
71 | // public ArrayList<HashMap<Integer, search_result_entry>> result_list;
|
72 | public Map<Integer, List<search_result_entry>> result_list;
|
72 | public Map<Integer, List<search_result_entry>> result_list;
|
73 |
|
73 |
|
74 | public static int mode = 1; // 0 .. hide towns if streets/housenumbers available
|
74 | public static int mode = 1; // 0 .. hide towns if streets/housenumbers available
|
75 | // 1 .. show towns and streets and housenumbers
|
75 | // 1 .. show towns and streets and housenumbers
|
… | |
… | |
119 | }
|
119 | }
|
120 |
|
120 |
|
121 | @Override
|
121 | @Override
|
122 | public void onCreate(Bundle savedInstanceState)
|
122 | public void onCreate(Bundle savedInstanceState)
|
123 | {
|
123 | {
|
124 | Navit.applySharedTheme(this, Navit.PREF_current_theme);
|
124 | Navit.applySharedTheme(this, Navit.p.PREF_current_theme);
|
125 |
|
125 |
|
126 | super.onCreate(savedInstanceState);
|
126 | super.onCreate(savedInstanceState);
|
127 |
|
127 |
|
128 | // Override how this activity is animated into view
|
128 | // Override how this activity is animated into view
|
129 | // The new activity is pulled in from the left and the current activity is kept still
|
129 | // The new activity is pulled in from the left and the current activity is kept still
|
… | |
… | |
213 | // adapter_ = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, result_list);
|
213 | // adapter_ = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, result_list);
|
214 | adapter_ = new NavitSearchResultListArrayAdapter(this, result_list);
|
214 | adapter_ = new NavitSearchResultListArrayAdapter(this, result_list);
|
215 |
|
215 |
|
216 | setListAdapter(adapter_);
|
216 | setListAdapter(adapter_);
|
217 | // this.getListView().setFastScrollEnabled(true);
|
217 | // this.getListView().setFastScrollEnabled(true);
|
218 | is_empty = true;
|
218 | // ** // is_empty = true;
|
219 |
|
219 |
|
220 | // this.getExpandableListView().setBackgroundColor(Color.rgb(0, 0, 0));
|
220 | // this.getExpandableListView().setBackgroundColor(Color.rgb(0, 0, 0));
|
221 |
|
221 |
|
222 | // ListActivity has a ListView, which you can get with:
|
222 | // ListActivity has a ListView, which you can get with:
|
223 | ExpandableListView lv = getExpandableListView();
|
223 | ExpandableListView lv = getExpandableListView();
|