나는 이것을 찾았다. 그러나 나는 아무것도 유용한 것을 찾지 못했습니다. LineAndPointFormatter 클래스의 문서에는 두께에 대해 언급 한 것이 없습니다.이 문제를 해결할 수있게 도와주세요.안드로이드 플롯 꺾은 선 그래프의 선 두께를 늘리려면 어떻게해야합니까?
1
A
답변
3
월이 도움말 당신 : 당신이 그것을 설정하는 그것의 복사본을 만들 필요가 없습니다
LineAndPointFormatter lineAndPointFormatter = new LineAndPointFormatter(Color.rgb(0, 0, 0), null, null);
//change the line width
Paint paint = lineAndPointFormatter.getLinePaint();
paint.setStrokeWidth(3);
lineAndPointFormatter.setLinePaint(paint);
+0
감사합니다. 잘 작동합니다. – Anandhu
+0
@Anandhu : 환영하는 친구 .... –
1
페인트 개체를 변경할 수 있습니다.
LineAndPointFormatter lineAndPointFormatter = new LineAndPointFormatter(Color.rgb(0, 0, 0), null, null);
// Set the line (stroke) width.
lineAndPointFormatter.getLinePaint().setStrokeWidth(3);
안녕하세요. 사용하신 코드에 대한 문제를 설명해주세요. –