Slyce-Inc / SlyceMessaging

A messaging library for Android
MIT License
968 stars 173 forks source link

Add more types. #17

Closed sourabhbans007 closed 8 years ago

sourabhbans007 commented 8 years ago

Hi, First of all.. Thanks for this useful lib. I need a help, i want to use your library. But i need modifications so i have copied the code, besides adding as library. Actually i need to add more different views. like polls. i need to add another view (like Poll) like:- u used Text and Image. SO, where i need to put the type and where i need to change the code to add another type of view.

  1. I have modified the adapter. and added new Holder Type.
  2. I have modified Message types class as..

public enum MessageItemType { INCOMING_MEDIA, INCOMING_TEXT, INCOMING_POLL, OUTGOING_MEDIA, OUTGOING_TEXT, OUTGOING_POLL, SPINNER;

But, its never called for INCOMING_POLL or OUTGOING_POLL. Thanks again. :)

sourabhbans007 commented 8 years ago

i have done it..