Пример #1
0
 @Override
 protected void onResume() {
   super.onResume();
   mapView.onResume();
   // 通知主导器,本view已经加载显示完毕
   travelPlanningPresenter.viewFinishLoading();
 }
Пример #2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_travel_planning);

    ActionBar actionBar = getSupportActionBar();
    // 使用up 箭头指示器显示home
    actionBar.setDisplayHomeAsUpEnabled(true);
    // 设置title 文本
    actionBar.setTitle("乐途记");

    travelPlanningPresenter = new TravelPlanningPresenter();
    travelPlanningPresenter.setView(this);
    mapView = (MapView) findViewById(R.id.map1);
    mapView.onCreate(savedInstanceState);
    init();

    addMapListener(); // 向地图添加单击事件监听器
    setUpMap();
  }