I have a ListView in main.xml where android:entries=”@array/list1″ and I’d like to update that entries field to (say) @array/list2 by an onclick function. Is this possible without an adapter?
I have a ListView in main.xml where android:entries=@array/list1 and I’d like to update that
Share
I am almost certain that you must use an Adapter if you want to do it from java instead of xml.
Here is a good example of setting up an Adapter to do this.
I have never personally seen a way to do it without using an Adapter. I suspect that if a way to do this did exist it would be mentioned in the “related methods” section of the docs for android:entries