Intervals refactoring: ListView instead of LinearLayout with a list of views.

This commit is contained in:
Román
2020-09-09 11:54:51 +02:00
committed by Román Martínez
parent 5a44da3fb0
commit 684762db58
8 changed files with 148 additions and 203 deletions
+1 -1
View File
@@ -97,4 +97,4 @@
</LinearLayout>
</ScrollView>
</LinearLayout>
</LinearLayout>
+20 -4
View File
@@ -9,7 +9,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="8dp">
android:layout_margin="8dp">
<TextView
android:layout_width="wrap_content"
@@ -37,7 +37,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="8dp">
android:layout_margin="8dp">
<TextView
android:id="@+id/interval_distance"
@@ -74,10 +74,26 @@
</LinearLayout>
<LinearLayout
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:background="@color/stats_separator"/>
<ListView
android:id="@+id/interval_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"/>
android:layout_margin="8dp"/>
<TextView
android:id="@+id/interval_list_empty_view"
style="@style/TextLarge"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal|center_vertical"
android:text="@string/interval_list_empty_message"
android:textColor="@color/list_empty_text" />
</LinearLayout>
@@ -1,14 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/StatsScrollView">
<LinearLayout
android:id="@+id/root_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginBottom="16dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp" />
</ScrollView>
+2
View File
@@ -443,6 +443,8 @@ limitations under the License.
<string name="track_list_empty_message">Start recording your next adventure here</string>
<!-- Aggregated Statistics -->
<string name="aggregated_stats_empty_message">Record your first track to see aggregated statistics</string>
<!-- Interval List -->
<string name="interval_list_empty_message">There are not any interval yet</string>
<!-- Track Widget -->
<!-- Tracks -->
<string name="tracks_few">%1$d tracks</string>