[android] Migrate last TextView to Material Components

Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2025-09-01 18:21:34 +02:00
committed by x7z4w
parent 452f582d45
commit b7d275eda8
27 changed files with 93 additions and 80 deletions

View File

@@ -4,7 +4,6 @@ import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat;
import app.organicmaps.sdk.Framework;
@@ -28,6 +27,8 @@ import com.github.mikephil.charting.data.LineDataSet;
import com.github.mikephil.charting.formatter.ValueFormatter;
import com.github.mikephil.charting.highlight.Highlight;
import com.github.mikephil.charting.listener.OnChartValueSelectedListener;
import com.google.android.material.textview.MaterialTextView;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@@ -55,10 +56,10 @@ public class ChartController implements OnChartValueSelectedListener
private MarkerView mCurrentLocationMarkerView;
@SuppressWarnings("NullableProblems")
@NonNull
private TextView mMaxAltitude;
private MaterialTextView mMaxAltitude;
@SuppressWarnings("NullableProblems")
@NonNull
private TextView mMinAltitude;
private MaterialTextView mMinAltitude;
@NonNull
private final Context mContext;
private long mTrackId = Utils.INVALID_ID;