6 Commits

Author SHA1 Message Date
64fde74e2e MainActivity: generate dynamic menu from last two weeks 2026-02-19 08:48:49 +01:00
d2a71d500d LunaEvent: rework sleep event
Make the UI more flexible and
slightly easier to understand.
2026-02-19 08:48:49 +01:00
3d893fa7db MainActivity: rename datepicker 2026-02-19 08:48:49 +01:00
d64f0b9627 layout: replace menu icon with utf8 character
The three dot menu icosn looks odd when stretched
due to the dynamic menu feature. Thus replace it
with the hamburger menu character that looks better
when scaled.
2026-02-19 08:48:49 +01:00
2dbfdcf9d5 MainActivity: sort events before saving
Also replace notifyItemInserted since it does not
call the adapter to redraw the row striping when
a new event is added.
2026-02-19 08:48:49 +01:00
0c8b7503f0 StatisticsActivity: rework all statistics
Improve the overall code.
2026-02-19 08:48:45 +01:00

View File

@@ -361,6 +361,10 @@ class StatisticsActivity : AppCompatActivity() {
val data = BarData(set1)
data.setValueTextSize(12f)
// does not work quite right yet
//Log.d(TAG, "xChartMax: ${barChart.xChartMax}")
//barChart.centerViewTo(barChart.xChartMax, 0F, YAxis.AxisDependency.LEFT)
val valueCount = min(values.size, 24)
barChart.setData(data)
barChart.legend.isEnabled = false