public void AnimateIris(LinearLayout iris) { Rect corners = new Rect(); bool i = iris.GetLocalVisibleRect(corners); Animation anim = new TranslateAnimation(10, 10, corners.Top, -2550); anim.Duration = 2000; iris.StartAnimation(anim); }
public void AnimateIris2(LinearLayout iris, RelativeLayout iris2) { Rect corners = new Rect(); bool i = iris.GetLocalVisibleRect(corners); Rect corners2 = new Rect(); bool j = iris2.GetLocalVisibleRect(corners2); Animation anim = new TranslateAnimation(10, 10, corners.Top, corners2.Top); anim.Duration = 2000; iris.Visibility = ViewStates.Visible; iris.StartAnimation(anim); }