trkpt/app/src/main/res/layout/fragment_track.xml

47 lines
1.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
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"
2020-01-02 17:00:37 +00:00
tools:context=".MainActivity">
2020-01-02 17:00:37 +00:00
<!-- OSM MAP -->
2020-01-02 17:00:37 +00:00
<!-- BOTTOM SHEET -->
2020-01-02 17:00:37 +00:00
<org.osmdroid.views.MapView
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:contentDescription="@string/descr_map_last_track"
app:layout_anchor="@+id/map"
app:layout_anchorGravity="center">
2020-01-02 17:00:37 +00:00
</org.osmdroid.views.MapView>
<androidx.core.widget.NestedScrollView
android:id="@+id/statistics_sheet"
android:layout_width="@dimen/bottom_sheet_width"
2020-01-02 17:00:37 +00:00
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
2020-01-02 17:00:37 +00:00
android:background="@drawable/shape_statistics_background_collapsed"
app:behavior_hideable="false"
app:behavior_peekHeight="54dp"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
2020-01-02 17:00:37 +00:00
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- STATISTICS -->
<include layout="@layout/track_statistics" />
</ScrollView>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>