Scrollable area like in Robo Defense game(both horizontal and vertical)

by Maksim » Thu, 13 Aug 2009 22:45:58 GMT


Sponsored Links
 I'm trying to implement something very similar in my application, but
looks like it's impossible to do this with standard components. I read
several topics about such scrolling feature in the group, but all the
topics ends with suggestion to write your own scroll view.
I wonder did somebody implement such scroll view already? Or can
somebody provide a brief how-to on this particular feature.
I think any information on this would be very appreciated by many
members of the group.

Thanks.


--~--~---------~--~----~------------~-------~--~----~



Scrollable area like in Robo Defense game(both horizontal and vertical)

by Markus Junginger » Thu, 20 Aug 2009 08:18:13 GMT


 I'm in the same boat and need a custom ScrollView capable of scrolling
in both directions. Before I start it on my own, I wanted to check
here first. This has probably done before a couple of times and maybe
someone does not mind sharing some code?

Anyone knows if Donut is going to support scrolling in both
directions?

Thanks,
Markus
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Scrollable area like in Robo Defense game(both horizontal and vertical)

by Markus Junginger » Thu, 20 Aug 2009 14:05:26 GMT


 


They must use there own custom UI component because it's not supported
by Android 1.5. Most games won't scroll any child views but will
implement a single game View and handle scrolling "just" for this
view. At least that's how I do it.

Nevertheless, what I was looking for is view something else. To
clarify my requirements a little more: there is just a fixed size View
which is larger than the screen and you need to scroll that and its
child views in both directions. I hope someone shares his/her
solution.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. VoIP problems with N1?

I want to know only this. Does VoIP work well on the Nexus One using
SIPDroid or not? I would buy five for a project, but I've heard there
are problems with VoIP.

Ben

-- 

2. Need Help in File Functions

Not all files will have the permission to edit/delete. You should
first check for the permission before doing an operation on a file.

Thanks and Regards,
Kumar Bibek




-- 

3. error while calling an activity from another activity

4. Where do the resources from android.R come from?

5. Where do the resources from android.R come from?

6. ListView row floats out of place, scrolls different speed?

7. Moving a graphic on different screen sizes with the right ratio?