ShapeDrawable oval = new ShapeDrawable (new OvalShape());
oval.getPaint().setStyle(Paint.Style.STROKE); // 테두리 선 스타일
oval.getPaint().setStrokeWidth(2); //테두리 선 굵기
oval.getPaint().setAntiAlias(true);
oval.getPaint().setColor(getResources().getColor(R.color.lightGray)); // 색상지정
'android' 카테고리의 다른 글
비트맵 파일로 떨어트리기 (0) | 2017.12.14 |
---|---|
웹뷰 바로 전의 URL 가져오기 (0) | 2017.12.12 |
마테리얼 디자인 정리가 잘되어있어 올립니다. (0) | 2017.12.02 |
LTE, WIFI, Network 체크 (0) | 2017.12.02 |
문자열 숫자 콤마 붙이기 (0) | 2017.12.02 |