File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
java/com/acous/airqualityindex/ui Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ android {
18
18
minSdkVersion 24
19
19
targetSdkVersion 30
20
20
versionCode 1
21
- versionName " 1.0"
21
+ versionName " 1.1. 0"
22
22
23
23
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
24
24
}
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import androidx.lifecycle.Observer
11
11
import com.acous.airqualityindex.R
12
12
import com.acous.airqualityindex.data.CityAqi
13
13
import com.acous.airqualityindex.util.Status
14
+ import com.github.mikephil.charting.components.Description
14
15
import com.github.mikephil.charting.components.XAxis
15
16
import com.github.mikephil.charting.data.Entry
16
17
import com.github.mikephil.charting.data.LineData
@@ -123,6 +124,9 @@ class ChartActivity : AppCompatActivity() {
123
124
chart_aqi.axisRight.isEnabled = false
124
125
chart_aqi.xAxis.textSize = 8f
125
126
chart_aqi.legend.isEnabled = false
127
+ var desc = Description ()
128
+ desc.text = """ ${getString(R .string.chart_desc)} ${cityAqi.city} """
129
+ chart_aqi.description = desc
126
130
chart_aqi.setTouchEnabled(true )
127
131
chart_aqi.xAxis.position = (XAxis .XAxisPosition .BOTTOM )
128
132
chart_aqi.setDrawGridBackground(false )
Original file line number Diff line number Diff line change 6
6
<string name =" seconds_remaining" >Seconds for next value</string >
7
7
<string name =" interval_label" >Refresh Seconds</string >
8
8
<string name =" refresh" >Refresh</string >
9
+ <string name =" chart_desc" >Air quality index of </string >
9
10
<string name =" next_interval" >The interval will be applicable from next cycle</string >
10
11
11
12
<string-array name =" seconds_interval" >
You can’t perform that action at this time.
0 commit comments