Android Question Scrolling a listview using Button?

delozoya

Member
Licensed User
Longtime User
Hello. I would like if is it possible Scrolling a listview using Button? Or scrolling 2 listview together

Thanks
 

delozoya

Member
Licensed User
Longtime User
ok, but i need that the 2 listview scroll together, Please can you post a example?, Or I select the color of text of only a one line of the listview?
 
Upvote 0

delozoya

Member
Licensed User
Longtime User
I try this but i need change color of línea select.
Othe forma is when i scroll a listview the other listview scroll together
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I try this but i need change color of línea select.
You cannot change the color of the selected item with a listview!

Consider to use a CustomListView instead. Here you have much more control.
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Hi DLZ,

if I'm not wrong, the ListView object miss a ScrollChanged event so you have no chance to intercept scrolling on first list to reflect as an action on your second list.
Both Erel and Manfred suggested to have a look on the CustomListView object which is built around a ScrollView which in turn sports a ScrollChanged event.
You may want to sync the second list "position" (based on value from first list) in that event to have your two lists scroll together.

udg
 
Upvote 0
Top