Why the multiple SupportMapFragment overlap in different fragment in Android?
up vote
0
down vote
favorite
I am new to developing Android Google Map , I use the two SupportMapFragment in different Fragment-1 and Fragment-2 respectively. First , I add the two fragment to BackStack . Before showing the any fragment , I will hide the all fragment first. I want these two fragment were live at the same times , so I did not use replace or remove any fragment. Forex-sample , when the fragment2 is hiding , but it still do something at the background. I open the Fragment-1 at first and turn to the Fragment-2 , and then back to the Fragment-1 . The Fragment-1 show the overlap like the following picture. I have try to hide the one of the Fragment-2 , but it is not working. IN MainActivity , I manager my fragment. In onCreate() , I will call following function: public void initStartFragment(){ ...