Android Question CustomListView in a TabHost

Declan

Well-Known Member
Licensed User
Longtime User
Is it possible to place a CustomListView within a TabHost?
I am doing:
B4X:
tbhMain.AddTab2("Events",clvEvents)
But error: "Types do not match"
On Compile:
 

Declan

Well-Known Member
Licensed User
Longtime User
Your code should be

B4X:
tbhMain.AddTab2("Events",clvEvents.AsView)
Many thanks, that works.
This is a simple "Diary" app and I will write any text entered into a SQLite database table.
In order to do this, I must be able to read the "Value".
I can do so with:
B4X:
Sub clvEvents_ItemClick(Index As Int, Value As Object)
    Log(Index & " = " & Value)
End Sub
But I must be able to read the Value from the "txtEvents_Click" event.
I tried:
B4X:
Sub txtEvents_Click(Index As Int, Value As Object)
    Log("From txtEdit: " & Value)
End Sub
But this does not work.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…