Hi All,
I have 2 CustomLisView and I need to copy some of the entries from one to the other. So does anyone know the fastest way to copy a entry from one Clv to another.
Thanks
It's for a file compare for multiple file (greater than 100). It take a long time to create the original clv structure. What I'm trying to do is to use a second clv to display different views like: right file missing, left file missing or equal. I've place a tag in the original clv entries so I can copy only the correct ones to the second clv. So I'm looking for a method to copy the original entry to the second one.
Just for the records.
Designer created file with HorizontalAnchor = BOTH does not work in CustomListView.
Size is not auto adjusted and there are strange gaps when panels are added.
When using LEFT and clv1.asview.width=100%x all things are well
-- Andy
CustomListView is a standard class. It is not a real Android View. If you check the code you see that there is a global variable named sv inside. This is the ScrollView. You should make sv public and then you will be able to add the gesture to sv.
Thanks man. While that didn't work simply by replacing the drawable's name in the class's code, I was able to get it work with AndroidResources library and now I get the correct holo blue color.
Add a transparent panel over the "header" item and handle its Click event. This way the event will not reach CustomListView and the color will not change.
If SubExists(CallBack, EventName & "_ItemLongClick") Then
Dim v As View
v = Sender
CallSub3(CallBack, EventName & "_ItemLongClick", v.Tag, items.Get(v.Tag))
End If
End Sub
I think that would be a nice option because after a while I really don't know anymore which views I added in which sequence. I think the designer should have an option to show the internal index number of a view. Like a toggle switch that would show a number on the view.
Sure, would even be better in the properties of the designer.