我正在尝试导入 从'@ angular / upgrade / static'导入{UpgradeComponent}; 使用ngupgrade在angular2中使用angular1指令,但我收到此错误。
代码:
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
//...//
if(isOneTextLine) {
canvas.drawText(mText.toString(), mCentrX, mCentrY, textWordPaint);
}else {
canvas.drawText(mText.toString(), mCentrX, mCentrY, textWordPaint);
canvas.drawText(mText_second.toString(), mCentrX, mCentrYForSecontLine, textWordPaint);
}}