مع خالص الشكر درس جميل جدا أفضل من دروس موقع اندرويد وxamarin
لدي اضافات:
// I define the button and textview by new local variables as example buttonZZ, textViewZZ -- ahf.ksa@gmail.com
// Note: it's better to not change the object id after make relationship between them to avoid errors
لدي اضافات:
// I define the button and textview by new local variables as example buttonZZ, textViewZZ -- ahf.ksa@gmail.com
// Note: it's better to not change the object id after make relationship between them to avoid errors
Button buttonZZ = FindViewById<Button>(Resource.Id.buttonX);
TextView textViewZZ = FindViewById<TextView>(Resource.Id.textViewX);
// Execute something during this event handler Click -- ahf.ksa@gmail.com
buttonZZ.Click += delegate
{
textViewZZ.Text = "Ok, u excute something";
};
// Execute something during this event handler Click -- ahf.ksa@gmail.com
textViewZZ.LongClick += delegate
{
buttonZZ.Text = textViewZZ.Text ;
// Or we can use: buttonZZ.Text = FindViewById<TextView>(Resource.Id. textViewZZ).Text;
};