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);
}
}
Aggregations