本文整理汇总了Java中android.support.wearable.view.CircledImageView.getCircleRadius方法的典型用法代码示例。如果您正苦于以下问题:Java CircledImageView.getCircleRadius方法的具体用法?Java CircledImageView.getCircleRadius怎么用?Java CircledImageView.getCircleRadius使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.support.wearable.view.CircledImageView
的用法示例。
在下文中一共展示了CircledImageView.getCircleRadius方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onFinishInflate
import android.support.wearable.view.CircledImageView; //导入方法依赖的package包/类
@Override
protected void onFinishInflate() {
super.onFinishInflate();
mName = (TextView) findViewById(R.id.name);
mIcon = (CircledImageView) findViewById(R.id.icon);
mExpandCircleRadius = mIcon.getCircleRadius();
mShrinkCircleRadius = mExpandCircleRadius * SHRINK_CIRCLE_RATIO;
mShrinkCircleAnimator = ObjectAnimator.ofFloat(mIcon, "circleRadius", mExpandCircleRadius, mShrinkCircleRadius);
mFadeOutLabelAnimator = ObjectAnimator.ofFloat(mName, "alpha", EXPAND_LABEL_ALPHA, SHRINK_LABEL_ALPHA);
mShrinkAnimator = new AnimatorSet().setDuration(ANIMATION_DURATION_MS);
mShrinkAnimator.playTogether(mShrinkCircleAnimator, mFadeOutLabelAnimator);
mExpandCircleAnimator = ObjectAnimator.ofFloat(mIcon, "circleRadius", mShrinkCircleRadius, mExpandCircleRadius);
mFadeInLabelAnimator = ObjectAnimator.ofFloat(mName, "alpha", SHRINK_LABEL_ALPHA, EXPAND_LABEL_ALPHA);
mExpandAnimator = new AnimatorSet().setDuration(ANIMATION_DURATION_MS);
mExpandAnimator.playTogether(mExpandCircleAnimator, mFadeInLabelAnimator);
}
示例2: ColorItem
import android.support.wearable.view.CircledImageView; //导入方法依赖的package包/类
public ColorItem(Context context) {
super(context);
View.inflate(context, R.layout.color_picker_item, this);
mLabel = (TextView) findViewById(R.id.label);
mColor = (CircledImageView) findViewById(R.id.color);
mExpandCircleRadius = mColor.getCircleRadius();
mShrinkCircleRadius = mExpandCircleRadius * SHRINK_CIRCLE_RATIO;
mShrinkCircleAnimator = ObjectAnimator.ofFloat(mColor, "circleRadius",
mExpandCircleRadius, mShrinkCircleRadius);
mShrinkLabelAnimator = ObjectAnimator.ofFloat(mLabel, "alpha",
EXPAND_LABEL_ALPHA, SHRINK_LABEL_ALPHA);
mShrinkAnimator = new AnimatorSet().setDuration(ANIMATION_DURATION_MS);
mShrinkAnimator.playTogether(mShrinkCircleAnimator, mShrinkLabelAnimator);
mExpandCircleAnimator = ObjectAnimator.ofFloat(mColor, "circleRadius",
mShrinkCircleRadius, mExpandCircleRadius);
mExpandLabelAnimator = ObjectAnimator.ofFloat(mLabel, "alpha",
SHRINK_LABEL_ALPHA, EXPAND_LABEL_ALPHA);
mExpandAnimator = new AnimatorSet().setDuration(ANIMATION_DURATION_MS);
mExpandAnimator.playTogether(mExpandCircleAnimator, mExpandLabelAnimator);
}
示例3: ColorItem
import android.support.wearable.view.CircledImageView; //导入方法依赖的package包/类
public ColorItem(Context context) {
super(context);
View.inflate(context, R.layout.digital_color_picker_item, this);
mLabel = (TextView) findViewById(R.id.label);
mColor = (CircledImageView) findViewById(R.id.color);
mExpandCircleRadius = mColor.getCircleRadius();
mShrinkCircleRadius = mExpandCircleRadius * SHRINK_CIRCLE_RATIO;
mShrinkCircleAnimator = ObjectAnimator.ofFloat(mColor, "circleRadius",
mExpandCircleRadius, mShrinkCircleRadius);
mShrinkLabelAnimator = ObjectAnimator.ofFloat(mLabel, "alpha",
EXPAND_LABEL_ALPHA, SHRINK_LABEL_ALPHA);
mShrinkAnimator = new AnimatorSet().setDuration(ANIMATION_DURATION_MS);
mShrinkAnimator.playTogether(mShrinkCircleAnimator, mShrinkLabelAnimator);
mExpandCircleAnimator = ObjectAnimator.ofFloat(mColor, "circleRadius",
mShrinkCircleRadius, mExpandCircleRadius);
mExpandLabelAnimator = ObjectAnimator.ofFloat(mLabel, "alpha",
SHRINK_LABEL_ALPHA, EXPAND_LABEL_ALPHA);
mExpandAnimator = new AnimatorSet().setDuration(ANIMATION_DURATION_MS);
mExpandAnimator.playTogether(mExpandCircleAnimator, mExpandLabelAnimator);
}