AggregatedStatisticsActivity: Convert ListView to RecyclerView

Part of: #1613
This commit is contained in:
Leon Marz
2023-08-05 16:58:40 +02:00
committed by Dennis Guse
parent 4baaff8374
commit e69bea802f
4 changed files with 56 additions and 50 deletions
+3 -2
View File
@@ -23,10 +23,11 @@
android:paddingBottom="?attr/actionBarSize"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<ListView
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/aggregated_stats_list"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
android:visibility="gone" />
<TextView
android:id="@+id/aggregated_stats_empty_view"
@@ -3,11 +3,11 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:paddingTop="8dp"
android:paddingEnd="8dp"
android:paddingStart="8dp"
android:paddingBottom="24dp">
android:paddingBottom="8dp">
<!-- Guidelines -->
<androidx.constraintlayout.widget.Guideline
@@ -166,4 +166,12 @@
app:layout_constraintTop_toBottomOf="@+id/aggregated_stats_max_rate"
tools:text="@string/stats_max_speed" />
<View
android:id="@+id/aggregated_stats_horizontal_line"
style="@style/HorizontalLine"
android:layout_marginTop="8dp"
app:layout_constraintStart_toEndOf="@id/guideline1"
app:layout_constraintEnd_toStartOf="@id/guideline3"
app:layout_constraintTop_toBottomOf="@id/aggregated_stats_max_rate_label" />
</androidx.constraintlayout.widget.ConstraintLayout>