I want to get group channel name and photo and i want to use into my custom header but i am not a able to get please tell solution for uikit android
Hi @Karan_Nagra
Welcome to Sendbird Community!
You can customize the ChannelHeaderComponent
of the ChannelModule.
This is how to customize a Component
.
public class CustomChannelHeaderComponent extends ChannelHeaderComponent {
@NonNull
@Override
public View onCreateView(@NonNull Context context, @NonNull LayoutInflater inflater, @NonNull ViewGroup parent, @Nullable Bundle args) {
toolbar = new Toolbar(context);
// TODO: customize the toolbar
return toolbar;
}
}
You can also refer to our sample code below.