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


Java SkinCompatImageHelper类代码示例

本文整理汇总了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();
}
 
开发者ID:wutongke,项目名称:AndroidSkinAnimator,代码行数:13,代码来源:CustomCircleImageView.java

示例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);
        }
    };
}
 
开发者ID:wutongke,项目名称:AndroidSkinAnimator,代码行数:15,代码来源:SkinCompatAnimatorImageView.java

示例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();
}
 
开发者ID:ximsfei,项目名称:Android-skin-support,代码行数:14,代码来源:SkinCompatCircleImageView.java

示例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);
}
 
开发者ID:ximsfei,项目名称:Android-skin-support,代码行数:15,代码来源:SkinMaterialFloatingActionButton.java


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