Top "Adapter" questions

Use this tag for questions relating to the Adapter design pattern, one of the Gang of Four's structural design patterns.

How to set selected item of Spinner by value, not by position?

I have a update view, where I need to preselect the value stored in database for a Spinner. I was …

java android adapter spinner
Bridged networking not working in Virtualbox under Windows 10

I just upgraded my laptop from Windows 7 to Windows 10 and found that I am unable to start Virtualbox VMs configured …

windows networking virtual-machine adapter windows-10
Android: How to bind spinner to custom object list?

In the user interface there has to be a spinner which contains some names (the names are visible) and each …

android adapter spinner
Call Activity method from adapter

Is it possible to call method that is defined in Activity from ListAdapter? (I want to make a Button in …

android list adapter addressing
Clear listview content?

I have a little problem with ListView. How do I clear a ListView content, knowing that it has a custom …

android listview adapter
OpenVPN failed connection / All TAP-Win32 adapters on this system are currently in use

^^ i get this error if i would connect to any OpenVPN Network. All TAP-Win32 adapters on this system are currently …

windows networking adapter vpn openvpn
Android, ListView IllegalStateException: "The content of the adapter has changed but ListView did not receive a notification"

What I want to do: run a background thread which calculates ListView contents and update ListView partially, while results are …

android exception listview adapter
Setting network adapter metric priority in Windows 7

I'm having an issue on Windows 7 - if I have my Ethernet cable plugged in, Windows will default to using …

windows networking windows-7 adapter
Remove all items from RecyclerView

I am trying to remove all the elements from my RecyclerView in my onRestart method so the items don't get …

android adapter android-recyclerview
How to start Activity in adapter?

I have a ListActivity with my customized adapter and inside each of the view, it may have some buttons, in …

java android android-activity adapter