第二次打开时,SupportMapFragment非常慢

时间:2014-03-20 19:41:20

标签: supportmapfragment

我尝试实现SupportMapFragment,但第二次打开时速度非常慢。

我的XML - 代码:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:map="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <fragment
        android:id="@+id/hits_map"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        class="com.google.android.gms.maps.SupportMapFragment" />

</RelativeLayout>

MyFragmentActivity:

package com.example.mapsupporttest;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
public class MainActivitySupportTest extends FragmentActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState); 
        setContentView(R.layout.activity_main_activity_support_test);
    }
}

0 个答案:

没有答案