WheelViewer.java 文件源码

java
阅读 20 收藏 0 点赞 0 评论 0

项目:MUtils 作者:
protected void init(Context context, AttributeSet attrs) {
    Resources res = getResources();
    this.setCenterDrawable(res.getDrawable(R.drawable.wheel_val_light));
    this.setBackgroundResource(R.drawable.wheel_bg_light);

    GradientDrawable topShadow = new GradientDrawable(Orientation.TOP_BOTTOM, new int[] { 0x00000000, 0x00000000 });
    this.setTopShadowDrawable(topShadow);

    GradientDrawable bottomShadow = new GradientDrawable(Orientation.BOTTOM_TOP,
            new int[] { 0x00000000, 0x00000000 });
    this.setBottomShadowDrawable(bottomShadow);

    mTextColorValue = 0xFF000000;
    mTextColorItems = 0xFF888888;

    TEXT_SIZE = (int) AppUtil.sp2px(getContext(), 18);
    setFakeBoldText(false);
    setCyclic(true);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号