문제

I am trying to draw many edittext on canvas every time when the user draw a rectangle using the ondraw on the canvas. Is this even possible? without having to add the edittext on the xml file? and also i an trying to do this in a java file instead of the activity. Please advice thank you.

Current draw rectangle codes are as follows:

 for (RectF rec : rects) {

    if (rec.height() != 50 ) {
        canvas.drawOval(rec, paintColor);

    } else {
        canvas.drawRect(rec, paintColor);

    }

올바른 솔루션이 없습니다

다른 팁

If you are trying to draw text on your canvas, you can call:

canvas.drawText()
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top