Moving MapFragment (SurfaceView) causes black background flickering

后端 未结 16 1410
误落风尘
误落风尘 2020-12-04 09:32

I\'m trying to implement new Android Google Maps API (v2). However it doesn\'t seem to go well with SlidingMenu. As you may know, MapFragment implementation is

16条回答
  •  暖寄归人
    2020-12-04 09:42

    try adding..

    getHolder().setFormat(PixelFormat.TRANSLUCENT);

    to your SurfaceView's constructor. The TextureView should also work, but will require you to drop support for sub api 14 devices.

提交回复
热议问题