0

我们如何在 monkeytalk 中测试自定义视图?(android 和 ios 应用程序自动化)我尝试为某些视图提供内容描述并获取 id,它工作正常,但是当涉及到一些涉及画布绘图的复杂视图时,我无法获取身份证!请任何人都可以建议如何去做吗?

下面是我正在使用的 android 代码片段

    Paint myPaint = new Paint();
    myPaint.setAntiAlias(true);
    myPaint.setColor(res.getColor(R.color.dialerFontColorDark));
    myPaint.setStyle(Paint.Style.FILL);
    android.graphics.Path timePointer = new android.graphics.Path();

    // Draws the upper arrow on the top of the temperature box
    timePointer.moveTo(dialCenterX - getDip(6),
            (dialCenterY - this.dialRadius) - getDip(32));
    timePointer.lineTo(dialCenterX, (dialCenterY - this.dialRadius)
            - getDip(20));
    timePointer.lineTo(dialCenterX + getDip(6),
            (dialCenterY - this.dialRadius) - getDip(32));
    timePointer.close();
    *canvas.drawPath(timePointer, myPaint);*
    timePointer.reset();

我们如何获取在 monkeytalk 中绘制的画布的 id?

4

0 回答 0