summaryrefslogtreecommitdiff
path: root/android-app/app/src/main/res/layout/fragment_map.xml
blob: 2b9b40db4c8323fa1f43e6741cc556ecf76ac973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <org.maplibre.android.maps.MapView
        android:id="@+id/map_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:maplibre_cameraTargetLat="37.0"
        app:maplibre_cameraTargetLng="-122.0"
        app:maplibre_cameraZoom="5.0" />

    <!-- Loading / error overlay -->
    <TextView
        android:id="@+id/status_text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="top|center_horizontal"
        android:layout_marginTop="16dp"
        android:background="#AA000000"
        android:paddingHorizontal="12dp"
        android:paddingVertical="4dp"
        android:textColor="#FFFFFF"
        android:textSize="14sp"
        android:visibility="gone" />

    <!-- Staleness banner -->
    <TextView
        android:id="@+id/tvStalenessWarning"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:background="#FFCC00"
        android:textColor="#000000"
        android:textStyle="bold"
        android:padding="8dp"
        android:gravity="center"
        android:visibility="gone"
        android:text="" />

</FrameLayout>