Skip to content Skip to sidebar Skip to footer

View In Android Taking The Whole Screen- How To Tell The Canvas To Respect The Limits Of The View?

EDIT: OK, so I've extended the lenght and the width of the view to a big part of the screen I can assume that the onDraw() method is NOT TAKING the limits of the view, because it g

Solution 1:

Similar code works just fine for me, including the animation. You have another issue somewhere else in your code: try setting the paint style.

Paint paint = new Paint();
    paint.setColor(Color.BLUE);
    paint.setTextSize(30);
    paint.setAntiAlias(true);
paint.setStyle(Paint.Style.STROKE);

Post a Comment for "View In Android Taking The Whole Screen- How To Tell The Canvas To Respect The Limits Of The View?"