本文整理汇总了C#中Android.Views.View.GetHashCode方法的典型用法代码示例。如果您正苦于以下问题:C# View.GetHashCode方法的具体用法?C# View.GetHashCode怎么用?C# View.GetHashCode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Android.Views.View
的用法示例。
在下文中一共展示了View.GetHashCode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: animateView
/**
* Animates given View.
*
* @param view the View that should be animated.
*/
private void animateView(int position, View view, Animator[] animators)
{
if (mAnimationStartMillis == -1)
{
mAnimationStartMillis = SystemClock.UptimeMillis();
}
// ViewHelper.setAlpha(view, 0);
view.Alpha = 0;
AnimatorSet set = new AnimatorSet();
set.PlayTogether(animators);
set.StartDelay = calculateAnimationDelay(position);
set.SetDuration(mAnimationDurationMillis);
set.Start();
mAnimators.Put(view.GetHashCode(), set);
}
示例2: cancelExistingAnimation
/**
* Cancels any existing animations for given View.
*/
////@NonNull readonly
public void cancelExistingAnimation(View view)
{
int hashCode = view.GetHashCode();
Animator animator = mAnimators.Get(hashCode);
if (animator != null)
{
animator.End();
mAnimators.Remove(hashCode);
}
}