fuzzyworld

haunt / files / app / src / main / res / layout / activity_main.xml

activity_main.xml

2.5 KB · history · blame

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"
5 android:orientation="vertical"
6 android:fitsSystemWindows="true">
7
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
33 <net.fuzzyworld.haunt.debug.MapView
34 android:id="@+id/mapView"
35 android:layout_width="match_parent"
36 android:layout_height="0dp"
37 android:layout_weight="1" />
38
39 <LinearLayout
40 android:layout_width="match_parent"
41 android:layout_height="wrap_content"
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"
51 android:layout_marginEnd="4dp"
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"
59 android:layout_marginEnd="4dp"
60 android:text="Add Light" />
61
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
69 </LinearLayout>
70
71 <androidx.recyclerview.widget.RecyclerView
72 android:id="@+id/pointsList"
73 android:layout_width="match_parent"
74 android:layout_height="0dp"
75 android:layout_weight="1"
76 android:clipToPadding="false"
77 android:paddingBottom="8dp" />
78
79</LinearLayout>