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; mBtnClose = FindViewById(Resource.Id.btn_close) as ImageButton; mBtnClose.Click += (object sender, EventArgs e) => { Finish(); }; mBtnInvite = FindViewById(Resource.Id.btn_invite) as Button; mBtnInvite.Click += (sender, e) => { var intent = new Intent(this, typeof(SendBirdMemberListActivity)); Bundle args = null; args = SendBirdMemberListActivity.MakeSendBirdArgs(SendBirdSDK.GetAppId(), SendBirdSDK.GetUserId(), SendBirdSDK.GetUserName()); intent.PutExtras(args); StartActivityForResult(intent, REQUEST_MEMBER_LIST); mSettingsContainer.Visibility = ViewStates.Gone; }; 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(); }