📄 mapviewdemo.java
字号:
/* * Copyright (C) 2007 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package com.example.android.apis.view;import android.os.Bundle;import android.os.Handler;import android.os.Message;import android.view.View;import android.widget.LinearLayout;import android.widget.LinearLayout.LayoutParams;import com.google.android.maps.MapActivity;import com.google.android.maps.MapView;import com.example.android.apis.R;/** * Example of how to use an {@link com.google.android.maps.MapView}. * <h3>MapViewDemo</h3><p>This demonstrates creating a Map based Activity.</p><h4>Demo</h4>Views/MapView<h4>Source files</h4> * <table class="LinkTable"> * <tr> * <td >src/com.example.android.apis/view/MapViewDemo.java</td> * <td >The Alert Dialog Samples implementation</td> * </tr> * <tr> * <td >/res/layout/mapview.xml</td> * <td >Defines contents of the screen</td> * </tr> * </table> */public class MapViewDemo extends MapActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mapview); } @Override protected boolean isRouteDisplayed() { return false; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -