igalata / Bubble-Picker

An easy-to-use animation which can be used for content picking for Android
https://medium.com/@igalata13/how-to-create-a-bubble-selection-animation-on-android-627044da4854#.js8nebsx6
1.4k stars 249 forks source link

How to make select some bubbles when open bubble activity again. #64

Closed chetanya19 closed 6 years ago

tabish075 commented 5 years ago

have you found a solution, I am getting this error

android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6898) at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:1083) at android.view.ViewGroup.invalidateChild(ViewGroup.java:5205) at android.view.View.invalidateInternal(View.java:13680) at android.view.View.invalidate(View.java:13644) at android.view.View.invalidate(View.java:13628) at android.widget.ImageView.invalidateDrawable(ImageView.java:255) at android.graphics.drawable.Drawable.invalidateSelf(Drawable.java:435) at android.graphics.drawable.Drawable.setBounds(Drawable.java:214) at android.graphics.drawable.Drawable.setBounds(Drawable.java:226) at com.kienht.bubblepicker.rendering.Item.drawIcon(Item.kt:194) at com.kienht.bubblepicker.rendering.Item.createBitmap(Item.kt:126) at com.kienht.bubblepicker.rendering.Item.bindTexture(Item.kt:217) at com.kienht.bubblepicker.rendering.Item.bindTextures(Item.kt:86) at com.kienht.bubblepicker.rendering.PickerRenderer.initializeItem(PickerRenderer.kt:130) at com.kienht.bubblepicker.rendering.PickerRenderer.initializeArrays(PickerRenderer.kt:122) at com.kienht.bubblepicker.rendering.PickerRenderer.initialize(PickerRenderer.kt:116) at com.kienht.bubblepicker.rendering.PickerRenderer.onSurfaceChanged(PickerRenderer.kt:85) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1532) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1259)