Android/tuiroomkit
folder on Github:src/res/drawable-xxhdpi
folder to ensure that the color tone and style of the icons in the entire App remain consistent. Please keep the name of the icon file unchanged when replacing.strings.xml
files in values-zh and values-en.src/main/java/com/tencent/cloud/tuikit/roomkit/view
directory, and the screen view is in the TUIVideoSeat Component.|—— PrepareActivity // Preparation page Activity||—— CreateRoomActivity // Create room Activity||—— EnterRoomActivity // Enter room Activity|activity ——|—— RoomMainActivity // Room main page Activity|view ——||component——|—— PrepareView // Preparation page View||—— CreateRoomView // Create room View||—— EnterRoomView // Enter room View||—— RoomMainView // Audio/video conference main page View||—— TopView // Top button view, including: Speaker/Receiver switch, Switch Camera, etc.||—— BottomView // Bottom button view, including: Camera, Mic, Member Management, etc.||—— UseListView // User List view||—— RaiseHandApplicationListView // Raise Hand to Speak mode, Raise Hand application list page||—— TransferMasterView // Room Owner Transfer page||—— MoreFunctionView // "More" function view, including Chat, Beauty, and Set up functions||—— MeetingActivity // Audio/video conference main activity
private BottomItemData createCameraItem() {BottomItemData cameraItemData = new BottomItemData();//Set button type to differentiate different buttonscameraItemData.setType(BottomItemData.Type.VIDEO);//Set whether the button is clickableif (isOwner()) {cameraItemData.setEnable(true);} else if (mRoomStore.roomInfo.enableSeatControl) {cameraItemData.setEnable(false);} else {cameraItemData.setEnable(mRoomStore.roomInfo.enableVideo);}//Set the default icon of the buttoncameraItemData.setIconId(R.drawable.tuiroomkit_ic_camera_off);//Set the background image of the buttoncameraItemData.setBackground(R.drawable.tuiroomkit_bg_bottom_item_black);//Set the icon of the button when it is not clickablecameraItemData.setDisableIconId(R.drawable.tuiroomkit_ic_camera_off);//Set the default icon of the buttoncameraItemData.setName(mContext.getString(R.string.tuiroomkit_item_open_camera));//Button click effect, if your button needs to switch images/names, etc. when clicked, you need to construct this dataBottomSelectItemData camaraSelectItemData = new BottomSelectItemData();//Set the name of the button when selectedcamaraSelectItemData.setSelectedName(mContext.getString(R.string.tuiroomkit_item_close_camera));//Set the name of the button when not selectedcamaraSelectItemData.setUnSelectedName(mContext.getString(R.string.tuiroomkit_item_open_camera));//Set whether the button is selectedcamaraSelectItemData.setSelected(false);//Set the icon of the button when selectedcamaraSelectItemData.setSelectedIconId(R.drawable.tuiroomkit_ic_camera_on);//Set the icon of the button when not selectedcamaraSelectItemData.setUnSelectedIconId(R.drawable.tuiroomkit_ic_camera_off);//Set the click event of the button when selected/unselectedcamaraSelectItemData.setOnItemSelectListener(new BottomSelectItemData.OnItemSelectListener() {@Overridepublic void onItemSelected(boolean isSelected) {enableCamera(isSelected);}});cameraItemData.setSelectItemData(camaraSelectItemData);return cameraItemData;}
Was this page helpful?