Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Programmatically create GlSurfaceView #11124

Merged
merged 1 commit into from
Feb 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ protected void onSurfaceCreated(GL10 gl, EGLConfig config) {

addView(textureView, 0);
} else {
GLSurfaceView glSurfaceView = (GLSurfaceView) findViewById(R.id.surfaceView);
GLSurfaceView glSurfaceView = new GLSurfaceView(getContext());
glSurfaceView.setZOrderMediaOverlay(mapboxMapOptions.getRenderSurfaceOnTop());
mapRenderer = new GLSurfaceViewMapRenderer(getContext(), glSurfaceView, options.getLocalIdeographFontFamily()) {
@Override
Expand All @@ -314,7 +314,7 @@ public void onSurfaceCreated(GL10 gl, EGLConfig config) {
}
};

glSurfaceView.setVisibility(View.VISIBLE);
addView(glSurfaceView, 0);
}

nativeMapView = new NativeMapView(this, mapRenderer);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">

<android.opengl.GLSurfaceView
android:id="@+id/surfaceView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@null"
android:visibility="gone"/>

<FrameLayout
android:id="@+id/markerViewContainer"
android:layout_width="match_parent"
Expand Down