mapfragment

Moving MapFragment (SurfaceView) causes black background flickering

半世苍凉 提交于 2019-11-27 17:14:50
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 based on SurfaceView . The problem is that the SurfaceView doesn't like moving it around - I mean placing it in movable views: ViewPager , ScrollView , ListView , or the aforementioned SlidingMenu . When you move it, it leaves a black hole in the place where its pixels originally layed. It looks something like this . This problem can be partially solved by specifying a transparent background on the SurfaceView or even placing a

MapFragment in Fragment, alternatives?

徘徊边缘 提交于 2019-11-27 01:06:25
问题 I need your help... I work on it until 3 days. My app is working with fragments. One of these fragments has to display a map from the Google Maps V2 api for Android. Currently, I'm using a MapFragment, but no surprise, a fragment in a fragment is not a good idea, but it works, the map is displaying, i can edit it but when I switch of main fragment and return on it. Caused by: java.lang.IllegalArgumentException: Binary XML file line #59: Duplicate id 0x7f070041, tag null, or parent id

Moving MapFragment (SurfaceView) causes black background flickering

左心房为你撑大大i 提交于 2019-11-26 22:32:22
问题 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 based on SurfaceView . The problem is that the SurfaceView doesn't like moving it around - I mean placing it in movable views: ViewPager, ScrollView, ListView, or the aforementioned SlidingMenu . When you move it, it leaves a black hole in the place where its pixels originally layed. It looks something like this. This problem can be