Giter Site home page Giter Site logo

igalata / bubble-picker Goto Github PK

View Code? Open in Web Editor NEW
1.4K 32.0 247.0 14.03 MB

An easy-to-use animation which can be used for content picking for Android

Home Page: https://medium.com/@igalata13/how-to-create-a-bubble-selection-animation-on-android-627044da4854#.js8nebsx6

Kotlin 100.00%
android animation bubble picker opengl kotlin java selection

bubble-picker's Introduction

Bubble-Picker

License

Get it on Google Play

Check this project on dribbble

Read how we did it on Medium

Requirements

  • Android SDK 16+

Usage

Add to your root build.gradle:

allprojects {
	repositories {
	...
	maven { url "https://jitpack.io" }
	}
}

Add the dependency:

dependencies {
	compile 'com.github.igalata:Bubble-Picker:v0.2.4'
}

How to use this library

Add BubblePicker to your xml layout

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.igalata.bubblepicker.rendering.BubblePicker
        android:id="@+id/picker"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:backgroundColor="@android:color/white" />

</FrameLayout>

Override onResume() and onPause() methods to call the same methods from the BubblePicker

Kotlin

override fun onResume() {
      super.onResume()
      picker.onResume()
}

override fun onPause() {
      super.onPause()
      picker.onPause()
}

Java

@Override
protected void onResume() {
      super.onResume();
      picker.onResume();
}

@Override
protected void onPause() {
      super.onPause();
      picker.onPause();
}

Pass the PickerItem list to the BubblePicker

Kotlin

val titles = resources.getStringArray(R.array.countries)
val colors = resources.obtainTypedArray(R.array.colors)
val images = resources.obtainTypedArray(R.array.images)

picker.adapter = object : BubblePickerAdapter {

            override val totalCount = titles.size

            override fun getItem(position: Int): PickerItem {
                return PickerItem().apply {
                    title = titles[position]
                    gradient = BubbleGradient(colors.getColor((position * 2) % 8, 0),
                            colors.getColor((position * 2) % 8 + 1, 0), BubbleGradient.VERTICAL)
                    typeface = mediumTypeface
                    textColor = ContextCompat.getColor(this@DemoActivity, android.R.color.white)
                    backgroundImage = ContextCompat.getDrawable(this@DemoActivity, images.getResourceId(position, 0))
                }
            }
}

Java

final String[] titles = getResources().getStringArray(R.array.countries);
final TypedArray colors = getResources().obtainTypedArray(R.array.colors);
final TypedArray images = getResources().obtainTypedArray(R.array.images);

picker.setAdapter(new BubblePickerAdapter() {
            @Override
            public int getTotalCount() {
                return titles.length;
            }

            @NotNull
            @Override
            public PickerItem getItem(int position) {
                PickerItem item = new PickerItem();
                item.setTitle(titles[position]);
                item.setGradient(new BubbleGradient(colors.getColor((position * 2) % 8, 0),
                        colors.getColor((position * 2) % 8 + 1, 0), BubbleGradient.VERTICAL));
                item.setTypeface(mediumTypeface);
                item.setTextColor(ContextCompat.getColor(DemoActivity.this, android.R.color.white));
                item.setBackgroundImage(ContextCompat.getDrawable(DemoActivity.this, images.getResourceId(position, 0)));
                return item;
            }
});

Specify the BubblePickerListener to get notified about events

Kotlin

picker.listener = object : BubblePickerListener {
            override fun onBubbleSelected(item: PickerItem) {

            }

            override fun onBubbleDeselected(item: PickerItem) {

            }
}

Java

picker.setListener(new BubblePickerListener() {
            @Override
            public void onBubbleSelected(@NotNull PickerItem item) {
                
            }

            @Override
            public void onBubbleDeselected(@NotNull PickerItem item) {

            }
});

To get all selected items use picker.selectedItems variable in Kotlin or picker.getSelectedItems() method in Java.

For more usage examples please review the sample app

Changelog

Version: 0.2.4

  • Added a possibility to setup the BubblePicker using BubblePickerAdapter

Version: 0.2.3

  • Fixed black textures issue on some devices

Version: 0.2.1

  • BubblePicker.centerImmediately veriable added, so it's possible to place the bubbles in the center of the view immediately

Version: 0.2

  • icon parameter added to place an image on a bubble along with the title
  • iconOnTop parameter added to control position of the icon on a bubble
  • textSize parameter added
  • BubblePicker.bubbleSize variable now can be changed from 1 to 100

Known iOS versions of the animation

License

MIT License

Copyright (c) 2017 Irina Galata

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

bubble-picker's People

Contributors

anas-ambri avatar ckcks12 avatar igalata avatar jonathan-caryl avatar lionzxy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bubble-picker's Issues

How to Select and deselect any items pragmatically?

Hello,
Thank you for library .Please add some features asap it would be awesome to include this feature in the production app.
I have a Feature in which when i select the second item in the bubble view ,the focus of previous item should get deselected . so at a time only one item will get on.
If the user presses the second item the focus will get shifted to the next item.
Let me know how can i achieve this?

Text and Bubble size?

This lib is very interesting ๐Ÿ‘ I want to know how to increase the bubble size and text size on bubble ?

Getting java.lang.NullPointerException: Attempt to invoke virtual method 'void org.jbox2d.dynamics.contacts.Contact.init(org.jbox2d.dynamics.Fixture, org.jbox2d.dynamics.Fixture)' on a null object reference

Hi,

I'm trying to use the library in my app & I'm getting the following error. Could you review the code & let me know if I'm missing out anything in the code.

Thanks

Lib Version : v 0.2.1
Device : Nexus 6P

Sample Code :

public class MainActivity extends AppCompatActivity {

BubblePicker mBubblePicker;

@OverRide protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

mBubblePicker = (BubblePicker) findViewById(R.id.picker);
ArrayList<PickerItem> pickerItems = new ArrayList<>();
for (int i = 0; i < 5; i++) {
  pickerItems.add(new PickerItem("Hello" + i));
}
mBubblePicker.setItems(pickerItems);

}

@OverRide protected void onResume() {
super.onResume();
mBubblePicker.onResume();
}

@OverRide protected void onPause() {
super.onPause();
mBubblePicker.onPause();
}
}

I'm not able to see the bubble title!

Hello,

I have used below mentioned code, yet I am not able to see title over bubbles.

add(new PickerItem(titles[i],
                           ContextCompat.getDrawable(Home.this, images.getResourceId(i, 0)),
                           false,
                           colors.getColor(i, 0)
                   ));

Thanks.

Please resolve this issue for me. Means a lot!

Change bubble speed

Hi thanks for creating this library,
I wanted to know if it's possible to change the speed of the bubbles showing up the screen. The default speed is a bit too slow for me. Thanks.

Selected and not selected.

Hello.

Is it possible to tell background of the circle and color of the text for selecting and not selected?

Ex:

I want all the balls to be white and the text color red.
When selecting, I want the selected ball to be in red and the text in white.

Is that possible?

Thank you.

NullPointer Issue while device is rotated

When device is rotated it causes Null pointer exception in this lib

03-13 18:20:41.611 17885-18474/? E/AndroidRuntime: FATAL EXCEPTION: GLThread 26500
Process: com.hyperbolicdevs.opendictionary, PID: 17885
java.lang.NullPointerException: Attempt to invoke virtual method 'org.jbox2d.dynamics.Fixture org.jbox2d.dynamics.Body.createFixture(org.jbox2d.dynamics.FixtureDef)' on a null object reference
at com.igalata.bubblepicker.physics.CircleBody.(CircleBody.kt:61)
at com.igalata.bubblepicker.physics.Engine.build(Engine.kt:45)
at com.igalata.bubblepicker.rendering.PickerRenderer.initialize(PickerRenderer.kt:73)
at com.igalata.bubblepicker.rendering.PickerRenderer.onSurfaceChanged(PickerRenderer.kt:62)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1519)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

Please, the library Isn't Working!

I really appreciate the effort that you have put into this library and how extravagantly beautiful it is but..

Whenever I try to use the library, it keeps on giving me the error message after the add statement...

PickerItem() in PickerItem cannot be applied to:
Expected Parameters:
Actual Arguments:

I am coding in Java and this is my source code...

` final String[] titles = getResources().getStringArray(R.array.names);
final TypedArray colors = getResources().obtainTypedArray(R.array.colors);
final TypedArray images = getResources().obtainTypedArray(R.array.images);
@OverRide
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

bubblePicker.setItems(new ArrayList<PickerItem>() {{
    for (int i = 0; i < titles.length; ++i) {
        add(new PickerItem(titles[i], colors.getColor((i * 2) % 8, 0),
                ContextCompat.getColor(MainActivity.this, android.R.color.white),
                ContextCompat.getDrawable(MainActivity.this, images.getResourceId(i, 0)))
    }
}});`

The project I'm working on is extremely urgent so I am begging you to please help me out.

Question

Thank you for writing the library

  1. Is there any possibility that i can use the clickevent like a normal list click. By setting picker.setMaxSelectedCount(1) and whenever I press the normal Bubble the selected item removes itself and the current Item become selected.
  2. Make the very first item selected by default?

Java example not working

Hi, I came across with your work the last weekend, and I'm testing it on a new application I'm developing, when I tried your java code to create the picker Items it was not compiling because the constructor you were using does not exists...I was able to change it using the constructor PickerItem(Title, Drawable, iconOnTop, Color) but I came across with another problem, the title does not appear, I only see the bubbles with the drawable already displayed, and when I click the bubble enlarges, apply an alpha effect with the same drawable.
Can you help me telling how I can present the bubbles the same way you did in your example app? Thank you

Add and Remove Bubbles with UI Actions

hey there, i want to remove(delete) bubble from list when i click on it..... and i want to add a new Bubble on Button Click Action........... i tried

picker.getSelectedItems().remove(item);

in OnBubbeSeected in Listener..... but its not working to remove from list................ and in listener OnBubbleSelected method how to get the selected item position????

Can not show bubble picker after finishing a background task.

Hi Irina,
Thank you so much for your efforts to build this library.
Basically, it works fine if I init and show it in one main thread:

@AfterViews
   void init() {
       bubblePicker.setItems(new ArrayList<PickerItem>());
       bubblePicker.setBubbleSize(10);

       addItems();
   }
 @UiThread
    void addItems() {
        String[] testDatas = new String[]{"Item 1", "Item 21", "Item 3", "Item 4", "Item 5"};
        for (String data : testDatas) {
            PickerItem pickerItem = new PickerItem(data, null, false, ContextCompat.getColor(MainActivity.this, R.color.colorAccent),
                    null, 0f, Typeface.create("", Typeface.BOLD), null, 20f, ContextCompat.getDrawable(MainActivity.this, R.drawable.abc), true);
            if (bubblePicker.getItems() != null) {
                bubblePicker.getItems().add(pickerItem);
            }
        }

        bubblePicker.setListener(new BubblePickerListener() {
            @Override
            public void onBubbleSelected(@NotNull PickerItem pickerItem) {
                Toast.makeText(MainActivity.this, pickerItem.getTitle(), Toast.LENGTH_SHORT).show();
            }


            @Override
            public void onBubbleDeselected(@NotNull PickerItem pickerItem) {

            }
        });
    }

But it's not working at all if I implement it like that:

@AfterViews
    void init() {
        bubblePicker.setItems(new ArrayList<PickerItem>());
        bubblePicker.setBubbleSize(10);

        doSomething();
    }

 @Background
    void doSomething() {
        // get data from server or something like that...
        SystemClock.sleep(1000);
        addItems();
    }

I'm sure that it called addItems() method when the main thread is cameback.
Please help.

Duplicate entry

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/slf4j/event/EventConstants.class

Got the error when trying to generate the apk file

Add an extra icon to the bubble Picker?

Hi I would like to add the drawable as an icon above the text rather than as a background. Please find attached screenshot:

example

Please let me know if this is possible.

Thanks for your help!

Not able to include in the project as gradle dependency

Hi,

I am getting Failed to resolve error while including the gradle dependency in my project.


Error:(30, 13) Failed to resolve: com.github.igalata:Bubble-Picker:v0.2.4
<a href="openFile:/Users/shajeelafzal/Desktop/NewsNetwork/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

Can you please tell me the possible error?

Enhancement - Bubble Picker Adapters

First, great job on this library. It's given me a great idea for an app that I intend to develop.

Second, this seems like it would lend well to an adapter pattern, similar to Android ListViews or RecyclerViews. This is of course no small feat, but I'd love to see some way to implement custom physics so that developers can customize the location of the bubbles in the view and how they interact with each other. For example, customizing the rotation of the bubbles in the view, creating different clusters of bubbles in the view, or specifying orbital physics to bring certain bubbles closer to the center of the view.

Finally, I have to say BECAUSE of my first two statements, you've really motivated me to start learning Kotlin so I can extend the project, perhaps in the ways mentioned above if I can get comfortable with the code. So thank you for that!

Can't see picker items on the picker

Hi, thank you for creating this great library first of all :)

My problem is: when I use the Bubble Picker from XML (i.e. first creating in XML, then getting a referance to it in java code) everything works fine. But when I try to create the Bubble Picker in java and put it in a layout programatically, I face a problem. The bubble picker is displayed properly in the layout (with the background), but the picker items (bubbles) are not shown. The wierd thing is that I can click on all the bubbles even if I don't see them (I noticed this with the help of OnClick function). But I can't see any of them on the screen. Any idea? Thanks a lot...

Java Errors

When titles Array has 1 element, I take this error:

ashampoo_snap_2017 05 24_03h46m55s_003_

When titles Array has 16 elements, I take this error from setBackgroundImage method:

ashampoo_snap_2017 05 24_03h49m31s_005_

Please help me i am getting this error

kotlin.UninitializedPropertyAccessException: lateinit property items has not been initialized
at com.igalata.bubblepicker.rendering.PickerRenderer.initialize(PickerRenderer.kt:79)
at com.igalata.bubblepicker.rendering.PickerRenderer.onSurfaceChanged(PickerRenderer.kt:67)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1532)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1259)

@igalata please help me out

Make the view refresh its items

In my app, adding items seems to be too late for the BubblePicker to show them up before recreating, how can I force BubblePicker to refresh without restarting my activity?

Greetings!

Does not work on minSDK 16

It seems that the library only works on sdk 23+ as it does not work at all on minSDK16, it repeatedly produces this error: E/emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glActiveTexture:1260 GL error 0x500. The app does not crash, rather it freezes and it does not show anything.

Please explain this issue

Process: com.multitv.yuv, PID: 32613
kotlin.UninitializedPropertyAccessException: lateinit property items has not been initialized
at com.igalata.bubblepicker.rendering.PickerRenderer.initialize(PickerRenderer.kt:79)
at com.igalata.bubblepicker.rendering.PickerRenderer.onSurfaceChanged(PickerRenderer.kt:67)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1519)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

Exception

I'm getting this exception please help ! (Java Version)

FATAL EXCEPTION: GLThread 728
Process: cartoonworldmi.com.cartoonworld, PID: 13826
kotlin.UninitializedPropertyAccessException: lateinit property items has not been initialized
at com.igalata.bubblepicker.rendering.PickerRenderer.initialize(PickerRenderer.kt:79)
at com.igalata.bubblepicker.rendering.PickerRenderer.onSurfaceChanged(PickerRenderer.kt:67)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1519)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

I tried to add a custom animation but couldn't able to do it

Thanks for building this library. It's amazing :)

I am trying to add the custom animation to the picker in Java code but it's showing no effect. I added to fade in animation but the bubbles are always come from the left and right position (default animation).

I am using picker.setAnimation(animFadein); where as animFadeIn is a custom animation.

java.lang.OutOfMemoryError

I'm trying to run an example.
Example from your description does not work.
I changed the example to:
picker.setItems(new ArrayList() {{
for (int i = 0; i < titles.length; ++i) {
add(new PickerItem(titles[i],
ContextCompat.getDrawable(MainActivity.this, images.getResourceId(i, 0)),
true,
colors.getColor((i * 2) % 8, 0),
null,
ContextCompat.getColor(MainActivity.this, android.R.color.white)
));
}
}});

I get this exception:
java.lang.OutOfMemoryError: Failed to allocate a 30862956 byte allocation with 16777168 free bytes and 17MB until OOM
On the emulator and on the real device.

Simulate selection

Hi, I've used your lib to create a gift app for my wife... and I'm trying to select all bubbles with 1 click is that possible? Thank you.

Facing Blank screen Issue

Can we mange the speed of bubble because when I am open my activity screen goes blank after 3 to 5 minutes bubbles moves in center.

Or can we centralized the bubble when i am opening my activity?

Color to bubbles image

Hi, Can we replace colors with drawable images. I have a requirement to show bubbles not gradient colors.

The library isn't working!

I really appreciate the effort that you have put into this library and how extravagantly beautiful it is but..

Whenever I try to use the library, it keeps on giving me the error message after the add statement...

PickerItem() in PickerItem cannot be applied to:
Expected Parameters:
Actual Arguments:

I am coding in Java and this is my source code...

` final String[] titles = getResources().getStringArray(R.array.names);
final TypedArray colors = getResources().obtainTypedArray(R.array.colors);
final TypedArray images = getResources().obtainTypedArray(R.array.images);
@OverRide
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

    bubblePicker.setItems(new ArrayList<PickerItem>() {{
        for (int i = 0; i < titles.length; ++i) {
            add(new PickerItem(titles[i], colors.getColor((i * 2) % 8, 0),
                    ContextCompat.getColor(MainActivity.this, android.R.color.white),
                    ContextCompat.getDrawable(MainActivity.this, images.getResourceId(i, 0)))
        }
    }});`

The project I'm working on is extremely urgent so I am begging you to please help me out.

dynamic add items

in pickerRender:
fun addItem(pickerItem: PickerItem) {
synchronized(this) {
items.add(pickerItem)
var newBody = Engine.buildBodiesWithOne(scaleX, scaleY)
circles.add(Item(pickerItem, newBody))
textureIds = textureIds?.copyOf(circles.size * 2)

        vertices = vertices?.copyOf(circles.size * 8)
        textureVertices = textureVertices?.copyOf(circles.size * 8)

        initializeItem(circles.last(), circles.size - 1)
        verticesBuffer = vertices?.toFloatBuffer()
        uvBuffer = textureVertices?.toFloatBuffer()

    }
}

in Engine
fun buildBodiesWithOne(scaleX: Float, scaleY: Float):CircleBody{
val density = interpolate(0.8f, 0.2f, radius / 100f)

    val x = if (Random().nextBoolean()) -startX else startX
    val y = if (Random().nextBoolean()) -0.5f / scaleY else 0.5f / scaleY
    var body= CircleBody(world, Vec2(x, y), bubbleRadius * scaleX, (bubbleRadius * scaleX) * 1.3f, density)
    bodies.add(body)
    return body
}

but the new item is always black, and no image or text

Unable to customize the size of specific bubble

Hi, Igalata
I am facing some problem in customising the size of specific bubble.
I am sharing the image of bubble that i want to achieve in my app with the help of your superb library.
And one more issue is that i am unable to set the border color on bubble.

Thanks
screenshot

NullPointerException while adding images, colors in the view

Hello @igalata ,

I have used bubble picker api and I coded as given below.

picker = (BubblePicker) findViewById(R.id.picker);

        titles = getResources().getStringArray(R.array.categories);
        colors = getResources().obtainTypedArray(R.array.colors);
        images = getResources().obtainTypedArray(R.array.images);

        picker.setItems(new ArrayList<PickerItem>() {
            {
                for (int i = 0; i < titles.length; ++i) {

                    add(new PickerItem(titles[i],
                            ContextCompat.getDrawable(context, images.getResourceId(i, 0)),
                            true,
//                            ContextCompat.getColor(context, R.color.white)
                            colors.getColor((i * 2) % 8, 0)
                    ));
                }
            }
        });

        picker.setListener(new BubblePickerListener() {
            @Override
            public void onBubbleSelected(@NotNull PickerItem item) {

            }

            @Override
            public void onBubbleDeselected(@NotNull PickerItem item) {

            }
        });

and here there is

NullPointerException

in

ContextCompat.getDrawable(context, images.getResourceId(i, 0)),

this line!

Any solution?

Thank you.

java.lang.ClassCastException: android.graphics.drawable.VectorDrawable cannot be cast to android.graphics.drawable.BitmapDrawable

Process: com.codifier.androidbubbleselector, PID: 14884
java.lang.ClassCastException: android.graphics.drawable.VectorDrawable cannot be cast to android.graphics.drawable.BitmapDrawable
at com.igalata.bubblepicker.rendering.Item.drawImage(Item.kt:150)
at com.igalata.bubblepicker.rendering.Item.createBitmap(Item.kt:77)
at com.igalata.bubblepicker.rendering.Item.bindTexture(Item.kt:162)
at com.igalata.bubblepicker.rendering.Item.bindTextures(Item.kt:67)
at com.igalata.bubblepicker.rendering.PickerRenderer.initializeItem(PickerRenderer.kt:98)
at com.igalata.bubblepicker.rendering.PickerRenderer.initializeArrays(PickerRenderer.kt:90)
at com.igalata.bubblepicker.rendering.PickerRenderer.initialize(PickerRenderer.kt:84)
at com.igalata.bubblepicker.rendering.PickerRenderer.onSurfaceChanged(PickerRenderer.kt:67)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1532)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1259)``

Question

Hi,
How to refresh the bubble picker...
i am unable to refresh the adapter

Issue in donloading https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.0.6/kotlin-compiler-embeddable-1.0.6.jar

Gradle is struck at downloading https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.0.6/kotlin-compiler-embeddable-1.0.6.jar

This is really nice demo but I can not see it working because of above issue please let me know how I can resolve it

thought downloading above file works like a charm but gradle was able to download 7mb in 5 hrs :/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.