1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-30 20:45:49 +01:00
This commit is contained in:
ozkanpakdil 2022-07-23 10:11:07 +01:00 committed by vanous
parent 152c3c8d62
commit 46f0187634
2 changed files with 6 additions and 2 deletions

View File

@ -21,6 +21,7 @@ import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@ -199,6 +200,7 @@ public class SleepChartFragment extends AbstractChartFragment {
mActivityChart.getXAxis().setValueFormatter(mcd.getChartsData().getXValueFormatter());
mActivityChart.setData(mcd.getChartsData().getData());
mSleepchartInfo.setText(buildYouSleptText(pieData));
mSleepchartInfo.setMovementMethod(new ScrollingMovementMethod());
heartRateMin = mcd.getHeartRateAxisMin();
heartRateMax = mcd.getHeartRateAxisMax();
intensityTotal = mcd.getIntensityTotal();

View File

@ -12,9 +12,11 @@
<TextView
android:id="@+id/sleepchart_info"
android:layout_width="fill_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0" />
android:layout_weight="0"
android:maxLines="3"
android:scrollbars="vertical" />
<com.github.mikephil.charting.charts.PieChart
android:id="@+id/sleepchart_pie_light_deep"