public void init(Context context) {
mScroller = new Scroller(context, new AccelerateInterpolator());// 加速 // 动画插入器
mInvisibleTextView = new MyTextView(context);
mInvisibleTextView.setText("0");
mInvisibleTextView.setGravity(Gravity.CENTER);
mInvisibleTextView.setIncludeFontPadding(false);
addView(mInvisibleTextView);
mVisibleTextView = new MyTextView(context);
mVisibleTextView.setText("0");
mVisibleTextView.setGravity(Gravity.CENTER);
mVisibleTextView.setIncludeFontPadding(false);
addView(mVisibleTextView);
mShadePaint.setColor(Color.BLACK);
mShadePaint.setStyle(Paint.Style.FILL);
mShinePaint.setColor(Color.WHITE);
mShinePaint.setStyle(Paint.Style.FILL);
}
FlipClockView.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:TimeTicker
作者:
评论列表
文章目录