1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-10-31 06:32:54 +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.content.Intent;
import android.graphics.Color; import android.graphics.Color;
import android.os.Bundle; import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
@ -199,6 +200,7 @@ public class SleepChartFragment extends AbstractChartFragment {
mActivityChart.getXAxis().setValueFormatter(mcd.getChartsData().getXValueFormatter()); mActivityChart.getXAxis().setValueFormatter(mcd.getChartsData().getXValueFormatter());
mActivityChart.setData(mcd.getChartsData().getData()); mActivityChart.setData(mcd.getChartsData().getData());
mSleepchartInfo.setText(buildYouSleptText(pieData)); mSleepchartInfo.setText(buildYouSleptText(pieData));
mSleepchartInfo.setMovementMethod(new ScrollingMovementMethod());
heartRateMin = mcd.getHeartRateAxisMin(); heartRateMin = mcd.getHeartRateAxisMin();
heartRateMax = mcd.getHeartRateAxisMax(); heartRateMax = mcd.getHeartRateAxisMax();
intensityTotal = mcd.getIntensityTotal(); intensityTotal = mcd.getIntensityTotal();

View File

@ -12,9 +12,11 @@
<TextView <TextView
android:id="@+id/sleepchart_info" android:id="@+id/sleepchart_info"
android:layout_width="fill_parent" android:layout_width="wrap_content"
android:layout_height="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 <com.github.mikephil.charting.charts.PieChart
android:id="@+id/sleepchart_pie_light_deep" android:id="@+id/sleepchart_pie_light_deep"