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. Leaking intent in send sms applicaion

Hi,

I have created an application in android. I have one activity which
invokes my app in a thread through a service.
In that thread, I register an intent receiver dynamically. But
sometimes I keep getting an error saying that intent receiver is
leaked. I searched on the forums & it said that I would have to
unregister it when in pause mode.??

How to go about this. The idea is to invoke a intentReceiver(Broadcast
receiver) then keeps listening for my SMS messages.

-- 

2. about gps

hi all:
i use Location location=manager.getLastKnownLocation("gps") to get
real gps,but it allways return null,and i walk around outside office
long time.
but if i use "network",it work.

dose anyone else know what is wrong?

-- 

3. Wandroid

4. Please help with an ideea

5. directfb on android

6. Eclipse plugin bug

7. pointing sdram at udisk