protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			SetContentView (Resource.Layout.ChoosePlayer);
			SetHomeButtonEnabled (false);
			var list = this.FindViewById<ListView>(Resource.Id.playerList);
			_adapter = new PlayerListAdapter(this);

			list.Adapter = _adapter;
			_readyButton = (TextView)CreateActionButton(Resource.Drawable.table_button);
			SetTextButtonEnabled (false);
			_readyButton.SetText (Resource.String.ConfirmString);
			_readyButton.SetTextColor (Resources.GetColorStateList(Resource.Drawable.ready_label_enable));
			
            RegisterSubscribes();
		}
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.ChoosePlayer);
            SetHomeButtonEnabled(false);
            var list = this.FindViewById <ListView>(Resource.Id.playerList);

            _adapter = new PlayerListAdapter(this);

            list.Adapter = _adapter;
            _readyButton = (TextView)CreateActionButton(Resource.Drawable.table_button);
            SetTextButtonEnabled(false);
            _readyButton.SetText(Resource.String.ConfirmString);
            _readyButton.SetTextColor(Resources.GetColorStateList(Resource.Drawable.ready_label_enable));

            RegisterSubscribes();
        }
Exemplo n.º 3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);
            SetContentView (Resource.Layout.ChoosePlayer);
            SetHomeButtonEnabled (false);
            var list = this.FindViewById<ListView>(Resource.Id.playerList);
            _adapter = new PlayerListAdapter(this);

            list.Adapter = _adapter;
            _readyButton = (TextView)CreateActionButton(Resource.Drawable.table_button);
            SetTextButtonEnabled (false);
            _readyButton.SetText (Resource.String.ConfirmString);
            _readyButton.SetTextColor (Resources.GetColorStateList(Resource.Drawable.ready_label_enable));
            _readyButton.Click+= delegate {
                SetResult(Result.Ok, new Intent().PutExtra("player_id",_adapter.SelectedPosition));
                base.OnBackPressed();
            };
        }