flipkart-incubator / springy-heads

Chat heads library for android
Apache License 2.0
370 stars 108 forks source link

Setting unread count for chat head functionality missing! #7

Closed Byragoni closed 8 years ago

Byragoni commented 8 years ago

Do we have the functionality for setting unread count on the chat head. Looking at the source code, it seems the functionality is not there. Am I right?

In the demo app, though you are showing unread count as 2, that is just part of image. I feel that's a misleading info!

thekirankumar commented 8 years ago

The functionality for generating the view for chat head is in a different repo : circular-drawable Do check it out. The drawable generated by that library has to be returned in the following method :

 public Drawable getChatHeadDrawable(Object key) {
        // this is where you return a drawable for the chat head itself based on the key. Typically you return a circular shape
        // you may want to checkout circular image library https://github.com/flipkart-incubator/circular-image
        return getResources().getDrawable(R.drawable.circular_view);
    }
thekirankumar commented 8 years ago

I have updated the Readme just in case. Closing the issue.

hoangvandan commented 7 years ago

Can you update scroll through them next time