当前位置: 首页>>代码示例>>Java>>正文


Java CircledImageView.getCircleRadius方法代码示例

本文整理汇总了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);
}
 
开发者ID:runtimeco,项目名称:Android-DFU-App,代码行数:20,代码来源:DeviceItemLayout.java

示例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);
}
 
开发者ID:AndroidAvanzato,项目名称:Capitolo6,代码行数:25,代码来源:DigitalWatchFaceWearableConfigActivity.java

示例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);
}
 
开发者ID:googlesamples,项目名称:android-WatchFace,代码行数:25,代码来源:DigitalWatchFaceWearableConfigActivity.java


注:本文中的android.support.wearable.view.CircledImageView.getCircleRadius方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。