If you an adapter, first, add all Elements to the adapter. At the end, add the adapter to your view/layout.
things, which worked:
Using java Syntax Highlighting
- adapter.addElement(e)
- setAdapter(adapter)
- adapter.addElement(e)
- setAdapter(adapter)
- adapter.addElement(e)
- adapter.addElement(e)
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
what not was working was:
Using java Syntax Highlighting
- setAdapter(adapter)
- adapter.addElement(e)
Parsed in 0.029 seconds, using GeSHi 1.0.8.4
what does the bug do: you wont have a selection-highlight function if you set the adapter before at least one element was added to the adapter.
alex

