Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么长方形边角的笔画这么难看?如果我在 xml 中绘制形状,它可以正常工作(至少它可以在活动中工作,我无法使用小部件对其进行测试)。
Paint strokePaint = new Paint(); strokePaint.setARGB(255, 16, 23, 131); strokePaint.setStyle(Paint.Style.STROKE); strokePaint.setStrokeWidth(8);
我正在测试 hdpi 密度。有没有人遇到过这个问题?
尝试:
strokePaint.setAntiAlias(true)