0

In android studios, I have successfully imported a library called ChatKit(https://github.com/stfalcon-studio/ChatKit). The creators of the library were kind enough to include a fully working sample within the library. Instead of recreating the process I want to import the sample from the library into my project but android studios is not allowing me to do so.

In my main activity, I can add :

import com.stfalcon.chatkit.dialogs.DialogsList;

But when cannot add:

import com.stfalcon.chatkit.sample.ChatSamplesListAdapter;

So I'm curious what other people have done to import a sample from an already imported library.

Thank you.

shle2821
  • 1,856
  • 1
  • 19
  • 26

1 Answers1

3

import com.stfalcon.chatkit.sample.ChatSamplesListAdapter;

It happens because this class is not included in the library.
It is a sample file used as sample.

As you can see it is just a simple RecyclerView.Adapter then you can copy it in your project or you can use a own adapter.

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841