private void InitUIComponents() { mTopBarContainer = FindViewById(Resource.Id.top_bar_container); mTxtChannelUrl = FindViewById(Resource.Id.txt_channel_url) as TextView; mSettingsContainer = FindViewById(Resource.Id.settings_container); mSettingsContainer.Visibility = ViewStates.Gone; mBtnLeave = FindViewById(Resource.Id.btn_leave) as Button; mBtnLeave.Click += (sender, e) => { mSettingsContainer.Visibility = ViewStates.Gone; SendBirdSDK.Leave(SendBirdSDK.GetChannelUrl()); Finish(); }; mBtnClose = FindViewById(Resource.Id.btn_close) as ImageButton; mBtnClose.Click += (object sender, EventArgs e) => { Finish(); }; mBtnSettings = FindViewById(Resource.Id.btn_settings) as ImageButton; mBtnSettings.Click += (sender, e) => { if (mSettingsContainer.Visibility != ViewStates.Visible) { mSettingsContainer.Visibility = ViewStates.Visible; } else { mSettingsContainer.Visibility = ViewStates.Gone; } }; ResizeMenubar(); }