yy1717
2020-01-06 f94146b3af6cf8a83c8c0ba62f7f86bae500dec2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//package safeluck.drive.evaluation.fragment;
//
//import android.graphics.Canvas;
//import android.graphics.Color;
//import android.graphics.Paint;
//import android.graphics.Path;
//import android.graphics.PathDashPathEffect;
//import android.graphics.Rect;
//import android.graphics.RectF;
//import android.opengl.GLSurfaceView;
//import android.os.Bundle;
//import android.support.annotation.NonNull;
//import android.support.annotation.Nullable;
//import android.support.v7.widget.Toolbar;
//import android.util.Log;
//import android.view.LayoutInflater;
//import android.view.SurfaceHolder;
//import android.view.SurfaceView;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.LinearLayout;
//
//import javax.security.auth.login.LoginException;
//
//import me.yokeyword.fragmentation.SupportFragment;
//import safeluck.drive.evaluation.R;
////import safeluck.drive.evaluation.render.GLRender;
//
//
///**
// * MyApplication2
// * Created by lzw on 2019/9/26. 15:20:58
// * 邮箱:632393724@qq.com
// * All Rights Saved! Chongqing AnYun Tech co. LTD
// */
//public class MapFragment extends SupportFragment{
//    private boolean isDrawing = false;
//
//    public static SupportFragment newInstance(){
//        return new MapFragment();
//    }
//    private GLSurfaceView mGLSurfaceView;
//    private static final String TAG = "MapFragment";
//    private SurfaceHolder holder;
//    Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
//    Path path = new Path();
//    private Canvas canvas;
//    private int x=-1;
//    private int y = -1;
//    private Toolbar toolbar;
//
//    private LinearLayout linearLayout;//surfaceview的父容器,为了移动surfaceview而使用,因为scrollto不能移动view,
//
//    @Nullable
//    @Override
//    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//        View view = inflater.inflate(R.layout.layout_mapfragment,container,false);
//        initView(view);
//        return view;
//    }
//
//    private void initView(View view) {
//        toolbar = view.findViewById(R.id.toolbar);
//        toolbar.setTitle("简单地图");
//
//        mGLSurfaceView = view.findViewById(R.id.glsurface);
//        mGLSurfaceView.setRenderer(new GLRender());
//    }
//
//
//
//}