Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 95e388b

Browse files
authored
Merge pull request #23 from ckcks12/develop
background transparent support
2 parents 5c6e8a2 + 6064322 commit 95e388b

File tree

1 file changed

+5
-1
lines changed
  • bubblepicker/src/main/java/com/igalata/bubblepicker/rendering

1 file changed

+5
-1
lines changed

bubblepicker/src/main/java/com/igalata/bubblepicker/rendering/BubblePicker.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.igalata.bubblepicker.rendering
22

33
import android.content.Context
4+
import android.graphics.PixelFormat
45
import android.opengl.GLSurfaceView
56
import android.support.annotation.ColorInt
67
import android.util.AttributeSet
@@ -58,7 +59,10 @@ class BubblePicker : GLSurfaceView {
5859

5960
constructor(context: Context?) : this(context, null)
6061
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
62+
setZOrderOnTop(true)
6163
setEGLContextClientVersion(2)
64+
setEGLConfigChooser(8, 8, 8, 8, 16, 0)
65+
holder.setFormat(PixelFormat.RGBA_8888)
6266
setRenderer(renderer)
6367
renderMode = RENDERMODE_CONTINUOUSLY
6468
attrs?.let { retrieveAttrubutes(attrs) }
@@ -116,4 +120,4 @@ class BubblePicker : GLSurfaceView {
116120
array.recycle()
117121
}
118122

119-
}
123+
}

0 commit comments

Comments
 (0)