How channels are getting listed

Hi, @sakkk
You can controll channel list in CustomChannelListAdapter. ChannelListFragment set channel list to CustomChannelListAdapter internally.

If you want to discriminate channel from channel list,

  1. you create your own ViewHolder
  2. Override getItemViewType and impl this method.
  3. Create different ViewHolder depending on viewType in onCreateViewHolder.

public class CustomChannelListAdapter extends ChannelListAdapter {

@NonNull
@Override
public BaseViewHolder<GroupChannel> onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
    // using viewType to discriminate channel
    return new CustomChannelViewHolder(ViewCustomChannelHolderBinding.inflate(LayoutInflater.from(parent.getContext()), parent, false));
}

@Override
public void onBindViewHolder(@NonNull BaseViewHolder<GroupChannel> holder, int position) {
    super.onBindViewHolder(holder, position);
}

@Override
public int getItemViewType(int position) {
    GroupChannel channel = getItem(position);
    // Discriminate channel and return viewType you intend
    return viewType;
}

}