private void MoveBackground() { System.Timers.Timer timer = new System.Timers.Timer(); timer.Interval = 50; timer.Elapsed += (sender, e) => { RunOnUiThread(() => { LinearLayout ll = (LinearLayout)FindViewById <LinearLayout>(Resource.Id.back); ll.ScrollTo(xA, 0); xA++; ImageView newImg = new ImageView(this); newImg.SetImageResource(Resource.Drawable.loop); newImg.SetScaleType(ImageView.ScaleType.CenterCrop); newImg.SetPadding(0, 0, 0, 0); LinearLayout.LayoutParams parms = new LinearLayout.LayoutParams(500, LinearLayout.LayoutParams.MatchParent); newImg.LayoutParameters = parms; if (xA % 50 == 0) { ll.AddView(newImg); } }); }; timer.Enabled = true; }