haunt / files / app / src / main / res / layout / activity_main.xml
activity_main.xml
8afad5cf 2026-05-13 Pavel Safronov | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | android:layout_width="match_parent" | |
| 4 | android:layout_height="match_parent" | |
b3ba2f30 2026-05-13 Pavel Safronov | 5 | android:orientation="vertical" |
| 6 | android:fitsSystemWindows="true"> | |
8afad5cf 2026-05-13 Pavel Safronov | 7 | |
0b21814b 2026-05-13 Pavel Safronov | 8 | <!-- Map toggle bar --> |
| 9 | <LinearLayout | |
| 10 | android:layout_width="match_parent" | |
| 11 | android:layout_height="36dp" | |
| 12 | android:orientation="horizontal"> | |
| 13 | ||
| 14 | <Button | |
| 15 | android:id="@+id/mapToggleButton" | |
| 16 | android:layout_width="0dp" | |
| 17 | android:layout_height="match_parent" | |
| 18 | android:layout_weight="1" | |
| 19 | android:text="Map ▾" | |
| 20 | android:textSize="12sp" | |
| 21 | style="?android:attr/borderlessButtonStyle" /> | |
| 22 | ||
| 23 | <Button | |
| 24 | android:id="@+id/orientButton" | |
| 25 | android:layout_width="wrap_content" | |
| 26 | android:layout_height="match_parent" | |
| 27 | android:text="⊙ Orient" | |
| 28 | android:textSize="12sp" | |
| 29 | style="?android:attr/borderlessButtonStyle" /> | |
| 30 | ||
| 31 | </LinearLayout> | |
| 32 | ||
b3ba2f30 2026-05-13 Pavel Safronov | 33 | <net.fuzzyworld.haunt.debug.MapView |
| 34 | android:id="@+id/mapView" | |
8afad5cf 2026-05-13 Pavel Safronov | 35 | android:layout_width="match_parent" |
b3ba2f30 2026-05-13 Pavel Safronov | 36 | android:layout_height="0dp" |
| 37 | android:layout_weight="1" /> | |
8afad5cf 2026-05-13 Pavel Safronov | 38 | |
d6ee68c1 2026-05-13 Pavel Safronov | 39 | <LinearLayout |
8afad5cf 2026-05-13 Pavel Safronov | 40 | android:layout_width="match_parent" |
| 41 | android:layout_height="wrap_content" | |
d6ee68c1 2026-05-13 Pavel Safronov | 42 | android:orientation="horizontal" |
| 43 | android:paddingHorizontal="12dp" | |
| 44 | android:paddingVertical="6dp"> | |
| 45 | ||
| 46 | <Button | |
| 47 | android:id="@+id/addPointButton" | |
| 48 | android:layout_width="0dp" | |
| 49 | android:layout_height="wrap_content" | |
| 50 | android:layout_weight="1" | |
0b21814b 2026-05-13 Pavel Safronov | 51 | android:layout_marginEnd="4dp" |
d6ee68c1 2026-05-13 Pavel Safronov | 52 | android:text="Add Point" /> |
| 53 | ||
| 54 | <Button | |
| 55 | android:id="@+id/addLightButton" | |
| 56 | android:layout_width="0dp" | |
| 57 | android:layout_height="wrap_content" | |
| 58 | android:layout_weight="1" | |
0b21814b 2026-05-13 Pavel Safronov | 59 | android:layout_marginEnd="4dp" |
d6ee68c1 2026-05-13 Pavel Safronov | 60 | android:text="Add Light" /> |
| 61 | ||
0b21814b 2026-05-13 Pavel Safronov | 62 | <Button |
| 63 | android:id="@+id/hauntButton" | |
| 64 | android:layout_width="0dp" | |
| 65 | android:layout_height="wrap_content" | |
| 66 | android:layout_weight="1" | |
| 67 | android:text="Haunt" /> | |
| 68 | ||
d6ee68c1 2026-05-13 Pavel Safronov | 69 | </LinearLayout> |
8afad5cf 2026-05-13 Pavel Safronov | 70 | |
b3ba2f30 2026-05-13 Pavel Safronov | 71 | <androidx.recyclerview.widget.RecyclerView |
| 72 | android:id="@+id/pointsList" | |
| 73 | android:layout_width="match_parent" | |
0b21814b 2026-05-13 Pavel Safronov | 74 | android:layout_height="0dp" |
| 75 | android:layout_weight="1" | |
b3ba2f30 2026-05-13 Pavel Safronov | 76 | android:clipToPadding="false" |
| 77 | android:paddingBottom="8dp" /> | |
8afad5cf 2026-05-13 Pavel Safronov | 78 | |
| 79 | </LinearLayout> |