Exemplo n.º 1
0
        internal void StartMemberList()
        {
            var    intent = new Intent(this, typeof(SendBirdMemberListActivity));
            Bundle args   = SendBirdMemberListActivity.MakeSendBirdArgs(appId, userId, userName);

            intent.PutExtras(args);
            StartActivityForResult(intent, REQUEST_SENDBIRD_MEMBER_LIST_ACTIVITY);
        }
Exemplo n.º 2
0
        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();
        }