/**
* Initialize.
*
* @param context
*/
private void initialize(Context context) {
this.setVerticalScrollBarEnabled(false);
this.setSlotInCenter(true);
this.setOrientation(TosGallery.VERTICAL);
this.setGravity(Gravity.CENTER_HORIZONTAL);
this.setUnselectedAlpha(1.0f);
// This lead the onDraw() will be called.
this.setWillNotDraw(false);
// The selector rectangle drawable.
this.mSelectorDrawable = getContext().getResources().getDrawable(R.drawable.wheel_val);
this.mTopShadow = new GradientDrawable(Orientation.TOP_BOTTOM, SHADOWS_COLORS);
this.mBottomShadow = new GradientDrawable(Orientation.BOTTOM_TOP, SHADOWS_COLORS);
// The default background.
this.setBackgroundResource(R.drawable.wheel_bg);
// Disable the sound effect default.
this.setSoundEffectsEnabled(false);
}
WheelView.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:MoneyRecord
作者:
评论列表
文章目录