Search in sources :

Example 1 with GroupChatAdapter

use of com.example.clown.adapter.GroupChatAdapter in project Skool by NhatTruongK15.

the class GroupChatActivity method getUserForGroupList.

private void getUserForGroupList(List<User> user, int viewType) {
    if (viewType == 0) {
        GroupChatAdapter groupChatAdapter = new GroupChatAdapter(user, GroupChatActivity.this);
        binding.listUserAdded.setAdapter(groupChatAdapter);
    } else if (viewType == 1) {
        UsersGCAdapter usersGCAdapter = new UsersGCAdapter(users, GroupChatActivity.this);
        binding.listFriend.setAdapter(usersGCAdapter);
    }
}
Also used : UsersGCAdapter(com.example.clown.adapter.UsersGCAdapter) GroupChatAdapter(com.example.clown.adapter.GroupChatAdapter)

Aggregations

GroupChatAdapter (com.example.clown.adapter.GroupChatAdapter)1 UsersGCAdapter (com.example.clown.adapter.UsersGCAdapter)1