File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed
MPChartLib/src/main/java/com/github/mikephil/charting/renderer Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -75,19 +75,21 @@ abstract class AxisRenderer(
75
75
init {
76
76
paintAxisLabels = Paint (Paint .ANTI_ALIAS_FLAG )
77
77
78
- paintGrid = Paint ()
79
- paintGrid!! .color = Color .GRAY
80
- paintGrid!! .strokeWidth = 1f
81
- paintGrid!! .style = Paint .Style .STROKE
82
- paintGrid!! .alpha = 90
83
-
84
- paintAxisLine = Paint ()
85
- paintAxisLine!! .color = Color .BLACK
86
- paintAxisLine!! .strokeWidth = 1f
87
- paintAxisLine!! .style = Paint .Style .STROKE
88
-
89
- limitLinePaint = Paint (Paint .ANTI_ALIAS_FLAG )
90
- limitLinePaint!! .style = Paint .Style .STROKE
78
+ paintGrid = Paint ().apply {
79
+ color = Color .GRAY
80
+ strokeWidth = 1f
81
+ style = Paint .Style .STROKE
82
+ alpha = 90
83
+ }
84
+
85
+ paintAxisLine = Paint ().apply {
86
+ color = Color .BLACK
87
+ strokeWidth = 1f
88
+ style = Paint .Style .STROKE
89
+ }
90
+ limitLinePaint = Paint (Paint .ANTI_ALIAS_FLAG ).apply {
91
+ style = Paint .Style .STROKE
92
+ }
91
93
}
92
94
93
95
/* *
You can’t perform that action at this time.
0 commit comments