Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i render Google Maps Android API v2 on a TextureView?

According to this comment, Google Maps Android API v2 relies on SurfaceView to display the map. And view animations doesn't work with SurfaceView. This is the problem that i'm facing: http://www.youtube.com/watch?v=rBWvRxV64WU (the MapView is flickering when the slide animation starts). I think that using TextureView this problem may not occur. So, how can i render Google Maps on a TextureView?

--- UPDATE ---
Google Maps Team fixed this issue on API 16: https://code.google.com/p/gmaps-api-issues/issues/detail?id=4839

like image 525
Marcos Lopes Avatar asked Mar 18 '26 02:03

Marcos Lopes


1 Answers

So, how can i render Google Maps on a TextureView?

Get a job at Google, join the Maps team, and implement a modification to the closed-source Maps V2 library to use TextureView on supported devices.

Otherwise, you cannot change this, as it is not open source, and therefore you cannot modify it.

Sorry!

like image 199
CommonsWare Avatar answered Mar 26 '26 08:03

CommonsWare



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!