Help Center/ Meeting/ Client SDK Reference/ Android SDK/ API Reference/ UI Customization/ Customizing the Menu Displayed upon a Touch on the Title Bar in a Meeting
Updated on 2024-07-30 GMT+08:00

Customizing the Menu Displayed upon a Touch on the Title Bar in a Meeting

You can customize the menu (Figure 2) displayed when you touch the title bar (Figure 1) in a meeting.

Application Scenarios

The content displayed on the meeting details panel needs to be adjusted, for example, hiding the password or adding a custom item.

Precautions

1. sdkConfig takes effect only when this configuration is passed during SDK initialization.

Customizing the Menu Displayed upon a Touch on the Title Bar in a Meeting

Sample Code

sdkConfig.setConfTitlePopwindowHandle(new CustomConfTitleBarPopwindowHandle());
Figure 1 Title bar area in a meeting
Figure 2 Custom meeting details panel

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
// Customize the menu displayed when the title bar in a meeting is touched. IMenuAction defines some view functions, which can be directly converted into ViewGroup to add, delete, modify, and query subviews.
public class CustomConfTitleBarPopwindowHandle implements IConfTitleBarPopwindowHandle {
    @Override
    public void buildConfTitleBarPopwindow(IMenuAction iMenuAction) {
        if (!HWMBizSdk.getBizOpenApi().isSelfChairMan()) {
            // View displayed without the password if the user is the host.
            View mPwdView = iMenuAction.findView(BuildInMenuType.CONF_TITLE_PWD_LAYOUT);
            if (mPwdView != null) {
                mPwdView.setVisibility(View.GONE);
            }
        } else {
            // View displayed with the password if the user is the host.
            View mPwdView = iMenuAction.findView(BuildInMenuType.CONF_TITLE_PWD_LAYOUT);
            if (mPwdView != null) {
                mPwdView.setVisibility(View.VISIBLE);
            }
        }
    }
}