Search in sources :

Example 1 with ChatAdapter

use of com.tutuanle.chatapp.adapters.ChatAdapter in project Chat-app by TuTuanLe.

the class ChatScreenActivity method init.

private void init() {
    preferenceManager = new PreferenceManager(getApplicationContext());
    chatMessages = new ArrayList<>();
    customizeChat = new CustomizeChat();
    chatAdapter = new ChatAdapter(chatMessages, getBitmapFromEnCodedString(receiverUSer.getProfileImage()), preferenceManager.getString(Constants.KEY_USER_ID));
    binding.chatRecyclerView.setAdapter(chatAdapter);
    database = FirebaseFirestore.getInstance();
}
Also used : ChatAdapter(com.tutuanle.chatapp.adapters.ChatAdapter) CustomizeChat(com.tutuanle.chatapp.models.CustomizeChat) PreferenceManager(com.tutuanle.chatapp.utilities.PreferenceManager)

Aggregations

ChatAdapter (com.tutuanle.chatapp.adapters.ChatAdapter)1 CustomizeChat (com.tutuanle.chatapp.models.CustomizeChat)1 PreferenceManager (com.tutuanle.chatapp.utilities.PreferenceManager)1