forked from upstream-mirrors/OpenTracks
Lists should show vertical scrolling indicator (was lost by switching to RecyclerView).
This commit is contained in:
@@ -40,6 +40,7 @@
|
|||||||
android:id="@+id/recycler_view_visible"
|
android:id="@+id/recycler_view_visible"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:scrollbars="vertical"
|
||||||
app:layout_constraintBottom_toTopOf="@id/recycler_view_not_visible"
|
app:layout_constraintBottom_toTopOf="@id/recycler_view_not_visible"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
|||||||
@@ -18,11 +18,11 @@
|
|||||||
</com.google.android.material.appbar.AppBarLayout>
|
</com.google.android.material.appbar.AppBarLayout>
|
||||||
|
|
||||||
<LinearLayout xmlns:tools="http://schemas.android.com/tools"
|
<LinearLayout xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:paddingTop="?attr/actionBarSize"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:fitsSystemWindows="true"
|
android:fitsSystemWindows="true"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical"
|
||||||
|
android:paddingTop="?attr/actionBarSize">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/custom_layout_list_add_linear_layout"
|
android:id="@+id/custom_layout_list_add_linear_layout"
|
||||||
@@ -82,7 +82,8 @@
|
|||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/recycler_view"
|
android:id="@+id/recycler_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content"
|
||||||
|
android:scrollbars="vertical" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
android:id="@+id/aggregated_stats_list"
|
android:id="@+id/aggregated_stats_list"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:scrollbars="vertical"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@@ -35,8 +36,8 @@
|
|||||||
style="?attr/textAppearanceHeadline4"
|
style="?attr/textAppearanceHeadline4"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:padding="16dp"
|
|
||||||
android:gravity="center_horizontal|center_vertical"
|
android:gravity="center_horizontal|center_vertical"
|
||||||
|
android:padding="16dp"
|
||||||
android:text="@string/aggregated_stats_empty_message" />
|
android:text="@string/aggregated_stats_empty_message" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:padding="8dp"
|
android:orientation="vertical"
|
||||||
android:orientation="vertical">
|
android:padding="8dp">
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:id="@+id/intervals_input_layout"
|
android:id="@+id/intervals_input_layout"
|
||||||
@@ -29,26 +29,26 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/interval_distance"
|
android:id="@+id/interval_distance"
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/TextAppearance.OpenTracks.PrimaryHeader"
|
style="@style/TextAppearance.OpenTracks.PrimaryHeader"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
android:text="@string/stats_distance" />
|
android:text="@string/stats_distance" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/interval_rate"
|
android:id="@+id/interval_rate"
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/TextAppearance.OpenTracks.PrimaryHeader"
|
style="@style/TextAppearance.OpenTracks.PrimaryHeader"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
tools:text="Speed" />
|
tools:text="Speed" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/interval_altitude"
|
android:id="@+id/interval_altitude"
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/TextAppearance.OpenTracks.PrimaryHeader"
|
style="@style/TextAppearance.OpenTracks.PrimaryHeader"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
android:text="@string/stats_gain_loss" />
|
android:text="@string/stats_gain_loss" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -64,13 +64,14 @@
|
|||||||
android:id="@+id/interval_list"
|
android:id="@+id/interval_list"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_margin="8dp" />
|
android:layout_margin="8dp"
|
||||||
|
android:scrollbars="vertical" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/interval_list_empty_view"
|
android:id="@+id/interval_list_empty_view"
|
||||||
|
style="?attr/textAppearanceHeadline4"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
style="?attr/textAppearanceHeadline4"
|
|
||||||
android:gravity="center_horizontal|center_vertical"
|
android:gravity="center_horizontal|center_vertical"
|
||||||
android:text="@string/interval_list_empty_message" />
|
android:text="@string/interval_list_empty_message" />
|
||||||
|
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ limitations under the License.
|
|||||||
android:id="@+id/marker_list_toolbar"
|
android:id="@+id/marker_list_toolbar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:navigationIcon="@drawable/ic_marker_show_24dp"
|
|
||||||
app:layout_behavior="@string/searchbar_scrolling_view_behavior"
|
app:layout_behavior="@string/searchbar_scrolling_view_behavior"
|
||||||
app:menu="@menu/marker_list" />
|
app:menu="@menu/marker_list"
|
||||||
|
app:navigationIcon="@drawable/ic_marker_show_24dp" />
|
||||||
</com.google.android.material.appbar.AppBarLayout>
|
</com.google.android.material.appbar.AppBarLayout>
|
||||||
|
|
||||||
<com.google.android.material.search.SearchView
|
<com.google.android.material.search.SearchView
|
||||||
@@ -51,7 +51,8 @@ limitations under the License.
|
|||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/marker_list"
|
android:id="@+id/marker_list"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" />
|
android:layout_height="match_parent"
|
||||||
|
android:scrollbars="vertical" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/marker_list_empty"
|
android:id="@+id/marker_list_empty"
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ limitations under the License.
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:paddingBottom="?attr/actionBarSize"
|
android:paddingBottom="?attr/actionBarSize"
|
||||||
|
android:scrollbars="vertical"
|
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||||
|
|
||||||
<com.google.android.material.bottomappbar.BottomAppBar
|
<com.google.android.material.bottomappbar.BottomAppBar
|
||||||
|
|||||||
Reference in New Issue
Block a user