Hi guys,
I'm trying to create a sliding effect for some Listview's.
Basically I need a few lists as a menu, but each only has a few options that will lead to another until 4 or 5 deep then to other activities from there. Didn't want to create loads of new activities just for a listview with a couple of items. Not because I'm lazy, more I thought it would waste resources.
Anyway, thought of simple sliding the selected listview down from out of view (to make nice viewing) then hiding the previous. To keep code clean I was going to create a sub something like
My questions are:
1) does this sound a reasonable way to go about it?
2) is the parameter for the sub right? can you pass a listview?
3) is there a better way to go about it
I looked through the sliding panels example to see if I could utilise some code....... still looking ... lol
Not touched b4a due to other commitments and everything I did learn before seems to have gone. So I feel like a n00b again :sign0148:
I'm trying to create a sliding effect for some Listview's.
Basically I need a few lists as a menu, but each only has a few options that will lead to another until 4 or 5 deep then to other activities from there. Didn't want to create loads of new activities just for a listview with a couple of items. Not because I'm lazy, more I thought it would waste resources.
Anyway, thought of simple sliding the selected listview down from out of view (to make nice viewing) then hiding the previous. To keep code clean I was going to create a sub something like
B4X:
sub slidelist(ListView as Listview)
...... some code to slide the view using a timer
end sub
My questions are:
1) does this sound a reasonable way to go about it?
2) is the parameter for the sub right? can you pass a listview?
3) is there a better way to go about it
I looked through the sliding panels example to see if I could utilise some code....... still looking ... lol
Not touched b4a due to other commitments and everything I did learn before seems to have gone. So I feel like a n00b again :sign0148: