public ColorItem(Context context) : base(context) { View.Inflate(context, Resource.Layout.ColorPickerItem, this); label = FindViewById <TextView> (Resource.Id.Label); colorView = FindViewById <CircledImageView> (Resource.Id.Color); expandCircleRadius = colorView.CircleRadius; shrinkCircleRadius = expandCircleRadius * ShrinkCricleRatio; shrinkCircleAnimator = ObjectAnimator.OfFloat(colorView, "circleRadius", expandCircleRadius, shrinkCircleRadius); shrinkLabelAnimator = ObjectAnimator.OfFloat(label, "alpha", ExpandLabelAlpha, ShrinkLabelAlpha); // FIXME Xamarin: new AnimatorSet().SetDuration(long) should return an AnimatorSet shrinkAnimator = new AnimatorSet(); shrinkAnimator.SetDuration(AnimationDurationMs); shrinkAnimator.PlayTogether(shrinkCircleAnimator, shrinkLabelAnimator); expandCircleAnimator = ObjectAnimator.OfFloat(colorView, "circleRadius", shrinkCircleRadius, expandCircleRadius); expandLabelAnimator = ObjectAnimator.OfFloat(label, "alpha", ShrinkLabelAlpha, ExpandLabelAlpha); expandAnimator = new AnimatorSet(); expandAnimator.SetDuration(AnimationDurationMs); expandAnimator.PlayTogether(expandCircleAnimator, expandLabelAnimator); }
protected override void OnFinishInflate() { base.OnFinishInflate(); circle = FindViewById <CircledImageView>(Resource.Id.circle); txtListItemListType = FindViewById <TextView>(Resource.Id.txtListItemListType); txtListItemDetail = FindViewById <TextView>(Resource.Id.txtListItemDetail); }
protected override void OnFinishInflate() { base.OnFinishInflate(); label = FindViewById <TextView>(Resource.Id.Label); circle = FindViewById <CircledImageView>(Resource.Id.Circle); expandCircleRadius = circle.CircleRadius; shrinkCircleRadius = expandCircleRadius * ShrinkCricleRatio; shrinkCircleAnimator = ObjectAnimator.OfFloat(circle, "circleRadius", expandCircleRadius, shrinkCircleRadius); shrinkLabelAnimator = ObjectAnimator.OfFloat(label, "alpha", ExpandLabelAlpha, ShrinkLabelAlpha); // FIXME Xamarin: new AnimatorSet().SetDuration(long) should return an AnimatorSet shrinkAnimator = new AnimatorSet(); shrinkAnimator.SetDuration(AnimationDurationMs); shrinkAnimator.PlayTogether(shrinkCircleAnimator, shrinkLabelAnimator); expandCircleAnimator = ObjectAnimator.OfFloat(circle, "circleRadius", shrinkCircleRadius, expandCircleRadius); expandLabelAnimator = ObjectAnimator.OfFloat(label, "alpha", ShrinkLabelAlpha, ExpandLabelAlpha); expandAnimator = new AnimatorSet(); expandAnimator.SetDuration(AnimationDurationMs); expandAnimator.PlayTogether(expandCircleAnimator, expandLabelAnimator); }
protected override void OnFinishInflate() { base.OnFinishInflate(); label = FindViewById<TextView>(Resource.Id.Label); circle = FindViewById<CircledImageView>(Resource.Id.Circle); expandCircleRadius = circle.CircleRadius; shrinkCircleRadius = expandCircleRadius * ShrinkCricleRatio; shrinkCircleAnimator = ObjectAnimator.OfFloat(circle, "circleRadius", expandCircleRadius, shrinkCircleRadius); shrinkLabelAnimator = ObjectAnimator.OfFloat(label, "alpha", ExpandLabelAlpha, ShrinkLabelAlpha); // FIXME Xamarin: new AnimatorSet().SetDuration(long) should return an AnimatorSet shrinkAnimator = new AnimatorSet(); shrinkAnimator.SetDuration(AnimationDurationMs); shrinkAnimator.PlayTogether(shrinkCircleAnimator, shrinkLabelAnimator); expandCircleAnimator = ObjectAnimator.OfFloat(circle, "circleRadius", shrinkCircleRadius, expandCircleRadius); expandLabelAnimator = ObjectAnimator.OfFloat(label, "alpha", ShrinkLabelAlpha, ExpandLabelAlpha); expandAnimator = new AnimatorSet(); expandAnimator.SetDuration(AnimationDurationMs); expandAnimator.PlayTogether(expandCircleAnimator, expandLabelAnimator); }
public ItemViewHolder(View itemView) : base(itemView) { CircledImageView = itemView.FindViewById <CircledImageView>(Resource.Id.circle); ListTypeTextView = itemView.FindViewById <TextView>(Resource.Id.txtListItemListType); DetailTextView = itemView.FindViewById <TextView>(Resource.Id.txtListItemDetail); }
public ColorItem(Context context) : base(context) { View.Inflate (context, Resource.Layout.ColorPickerItem, this); label = FindViewById<TextView> (Resource.Id.Label); colorView = FindViewById<CircledImageView> (Resource.Id.Color); expandCircleRadius = colorView.CircleRadius; shrinkCircleRadius = expandCircleRadius * ShrinkCricleRatio; shrinkCircleAnimator = ObjectAnimator.OfFloat (colorView, "circleRadius", expandCircleRadius, shrinkCircleRadius); shrinkLabelAnimator = ObjectAnimator.OfFloat (label, "alpha", ExpandLabelAlpha, ShrinkLabelAlpha); // FIXME Xamarin: new AnimatorSet().SetDuration(long) should return an AnimatorSet shrinkAnimator = new AnimatorSet (); shrinkAnimator.SetDuration (AnimationDurationMs); shrinkAnimator.PlayTogether (shrinkCircleAnimator, shrinkLabelAnimator); expandCircleAnimator = ObjectAnimator.OfFloat (colorView, "circleRadius", shrinkCircleRadius, expandCircleRadius); expandLabelAnimator = ObjectAnimator.OfFloat (label, "alpha", ShrinkLabelAlpha, ExpandLabelAlpha); expandAnimator = new AnimatorSet (); expandAnimator.SetDuration (AnimationDurationMs); expandAnimator.PlayTogether (expandCircleAnimator, expandLabelAnimator); }