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);
}
WheelViewer.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:MUtils
作者:
评论列表
文章目录