Android Question How do to ACSearchview like Searchview


Licensed User
Hi everybody, i don't know like program the control ACSearchview, i want to get the functionality of Searchview, like this code:

Sub Process_Globals
    Dim index As Object
End Sub

Sub Globals
    Dim sv As SearchView
End Sub

Sub Activity_Create(FirstTime As Boolean)
    sv.Initialize(Me, "sv")
    sv.AddToParent(Activity, 0, 0, 200dip, 300dip)
    If FirstTime Then
        Dim cities As List
        cities = File.ReadList(File.DirAssets, "Cities.txt")
        'As an optimization we store the index as a process global variable
        'and only build it once.
        index = sv.SetItems(cities)
    End If
End Sub

Sub sv_ItemClick(Value As String)
    Msgbox("Chosen value: " & Value, "")
End Sub

I would appreciate your answers, please


Well-Known Member
Licensed User
Longtime User
Hello, I do not understand your question, if you use the Searchview class that is the code to work, but you have to add the SearchView.bas module to make it work.
You can download it here:

I have told you in the Spanish forum


Hola, no entiendo tu pregunta, si empleas la clase Searchview ese es el codigo para que funcione, pero tienes que añadir el modulo SearchView.bas para que funcione.
Te lo puedes bajar aqui:

Upvote 0


Licensed User
Hi bgsoft, it's mean, that I am using the ACSearchview library, but does not have the method sv.SetItems to list the names of the words to look for as if it has the Searchview library.


I want to develop this functionality with ACSearchview. thanks a lot....
Upvote 0