本文整理汇总了Java中skin.support.widget.SkinCompatImageHelper类的典型用法代码示例。如果您正苦于以下问题:Java SkinCompatImageHelper类的具体用法?Java SkinCompatImageHelper怎么用?Java SkinCompatImageHelper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SkinCompatImageHelper类属于skin.support.widget包,在下文中一共展示了SkinCompatImageHelper类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CustomCircleImageView
import skin.support.widget.SkinCompatImageHelper; //导入依赖的package包/类
public CustomCircleImageView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
mImageHelper = new SkinCompatImageHelper(this);
mImageHelper.loadFromAttributes(attrs, defStyle);
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CircleImageView, defStyle, 0);
mBorderColorResId = a.getResourceId(R.styleable.CircleImageView_civ_border_color, INVALID_ID);
mFillColorResId = a.getResourceId(R.styleable.CircleImageView_civ_fill_color, INVALID_ID);
a.recycle();
applySkin();
}
示例2: SkinCompatAnimatorImageView
import skin.support.widget.SkinCompatImageHelper; //导入依赖的package包/类
public SkinCompatAnimatorImageView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
mBackgroundTintHelper = new SkinCompatBackgroundHelper(this);
mBackgroundTintHelper.loadFromAttributes(attrs, defStyleAttr);
mImageHelper = new SkinCompatImageHelper(this);
mImageHelper.loadFromAttributes(attrs, defStyleAttr);
visibleAction = new Action() {
@Override
public void action() {
SkinCompatAnimatorImageView.this.updateVisibility(visibleStatus);
}
};
}
示例3: SkinCompatCircleImageView
import skin.support.widget.SkinCompatImageHelper; //导入依赖的package包/类
public SkinCompatCircleImageView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
mImageHelper = new SkinCompatImageHelper(this);
mImageHelper.loadFromAttributes(attrs, defStyle);
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CircleImageView, defStyle, 0);
mBorderColorResId = a.getResourceId(R.styleable.CircleImageView_civ_border_color, INVALID_ID);
mFillColorResId = a.getResourceId(R.styleable.CircleImageView_civ_fill_color, INVALID_ID);
a.recycle();
applyBorderColorResource();
applyFillColorResource();
}
示例4: SkinMaterialFloatingActionButton
import skin.support.widget.SkinCompatImageHelper; //导入依赖的package包/类
public SkinMaterialFloatingActionButton(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
TypedArray a = context.obtainStyledAttributes(attrs,
R.styleable.FloatingActionButton, defStyleAttr,
R.style.Widget_Design_FloatingActionButton);
mBackgroundTintResId = a.getResourceId(R.styleable.FloatingActionButton_backgroundTint, INVALID_ID);
mRippleColorResId = a.getResourceId(R.styleable.FloatingActionButton_rippleColor, INVALID_ID);
a.recycle();
applyBackgroundTintResource();
applyRippleColorResource();
mImageHelper = new SkinCompatImageHelper(this);
mImageHelper.loadFromAttributes(attrs, defStyleAttr);
}