0
我有一個選項卡選項卡,並且在單擊此選項卡時,我想將內容設置爲OSM Map(其setContent())。我這樣做:如何顯示osm地圖
View bottomMap = createBottomTabView(bottomTabHost.getContext(), "Map", R.drawable.map);
bottomTabHost.addTab(bottomTabHost.newTabSpec("Map").setIndicator(bottomMap).setContent(new Intent(this, OSMMapClass.class)));
public class MapBottomTab extends MapActivity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
org.osmdroid.views.MapView mapView = new org.osmdroid.views.MapView(this, 256);
setContentView(mapView);
}
}
應該加載Map的變化......?