|
13 | 13 | tools:background="#00ccff" /> |
14 | 14 |
|
15 | 15 | <!-- |
16 | | - Using outer CoordinatorLayout to adjust inner CoordinatorLayout layout based on system |
17 | | - windows such as the status bar and the navigation bar. |
18 | 16 | CoordinatorLayout allows customization of navigation bar color using android:statusBarColor |
19 | 17 | theme attribute, while FrameLayout doesn't. |
20 | 18 | --> |
21 | 19 | <androidx.coordinatorlayout.widget.CoordinatorLayout |
| 20 | + android:id="@+id/coordinatorLayout" |
22 | 21 | android:layout_width="match_parent" |
23 | 22 | android:layout_height="match_parent"> |
24 | 23 |
|
25 | | - <androidx.coordinatorlayout.widget.CoordinatorLayout |
26 | | - android:id="@+id/coordinatorLayout" |
| 24 | + <androidx.constraintlayout.widget.ConstraintLayout |
| 25 | + android:id="@+id/container" |
27 | 26 | android:layout_width="match_parent" |
28 | | - android:layout_height="match_parent" |
29 | | - android:fitsSystemWindows="true"> |
30 | | - |
31 | | - <androidx.constraintlayout.widget.ConstraintLayout |
32 | | - android:id="@+id/container" |
33 | | - android:layout_width="match_parent" |
34 | | - android:layout_height="match_parent"> |
35 | | - |
36 | | - <androidx.constraintlayout.widget.Guideline |
37 | | - android:id="@+id/guidelineBottom" |
38 | | - android:orientation="horizontal" |
39 | | - android:layout_width="wrap_content" |
40 | | - android:layout_height="wrap_content" |
41 | | - app:layout_constraintGuide_end="0dp" |
42 | | - tools:layout_constraintGuide_end="100dp" /> |
43 | | - |
44 | | - <androidx.constraintlayout.widget.Guideline |
45 | | - android:id="@+id/guidelineBegin" |
46 | | - android:orientation="vertical" |
47 | | - android:layout_width="wrap_content" |
48 | | - android:layout_height="wrap_content" |
49 | | - app:layout_constraintGuide_begin="375dp" |
50 | | - tools:layout_constraintGuide_begin="375dp" /> |
51 | | - |
52 | | - <FrameLayout |
53 | | - android:id="@+id/guidanceLayout" |
54 | | - android:layout_width="wrap_content" |
55 | | - android:layout_height="0dp" |
56 | | - app:layout_constraintTop_toTopOf="parent" |
57 | | - app:layout_constraintStart_toStartOf="parent" |
58 | | - tools:layout_height="120dp" |
59 | | - tools:background="@color/mapbox_main_maneuver_background_color" /> |
60 | | - |
61 | | - <FrameLayout |
62 | | - android:id="@+id/scalebarLayout" |
63 | | - android:layout_width="wrap_content" |
64 | | - android:layout_height="wrap_content" |
65 | | - app:layout_constraintTop_toTopOf="parent" |
66 | | - app:layout_constraintStart_toStartOf="@id/guidanceLayout" |
67 | | - /> |
68 | | - |
69 | | - <FrameLayout |
70 | | - android:id="@+id/speedLimitLayout" |
71 | | - android:layout_width="75dp" |
72 | | - android:layout_height="wrap_content" |
73 | | - android:layout_marginStart="4dp" |
74 | | - android:layout_marginTop="8dp" |
75 | | - app:layout_constraintStart_toEndOf="@id/guidanceLayout" |
76 | | - app:layout_constraintTop_toBottomOf="@id/scalebarLayout" |
77 | | - tools:background="#eee" |
78 | | - tools:layout_height="60dp" |
79 | | - tools:layout_width="50dp" |
80 | | - android:layout_gravity="start|top" /> |
81 | | - |
82 | | - <FrameLayout |
83 | | - android:id="@+id/emptyLeftContainer" |
84 | | - android:layout_width="0dp" |
85 | | - android:layout_height="0dp" |
86 | | - android:layout_marginStart="4dp" |
87 | | - android:layout_marginTop="8dp" |
88 | | - android:layout_marginBottom="8dp" |
89 | | - app:layout_constraintStart_toStartOf="parent" |
90 | | - app:layout_constraintTop_toBottomOf="@id/speedLimitLayout" |
91 | | - app:layout_constraintBottom_toTopOf="@id/guidelineBottom" |
92 | | - app:layout_constraintEnd_toStartOf="@id/guidelineBegin" |
93 | | - tools:background="#F6A1A1" |
94 | | - android:layout_gravity="start|top" /> |
95 | | - |
96 | | - <FrameLayout |
97 | | - android:id="@+id/emptyRightContainer" |
98 | | - android:layout_width="wrap_content" |
99 | | - android:layout_height="wrap_content" |
100 | | - android:layout_marginEnd="4dp" |
101 | | - android:layout_marginTop="8dp" |
102 | | - android:layout_marginBottom="8dp" |
103 | | - android:layout_marginStart="4dp" |
104 | | - app:layout_constraintEnd_toEndOf="parent" |
105 | | - app:layout_constraintTop_toBottomOf="@id/actionListLayout" |
106 | | - app:layout_constraintBottom_toTopOf="@id/roadNameLayout" |
107 | | - tools:background="#F6A1A1" |
108 | | - tools:layout_height="130dp" |
109 | | - tools:layout_width="76dp" |
110 | | - android:layout_gravity="start|top" /> |
111 | | - |
112 | | - <FrameLayout |
113 | | - android:id="@+id/actionListLayout" |
114 | | - android:layout_width="@dimen/mapbox_actionList_width" |
115 | | - android:layout_height="wrap_content" |
116 | | - android:gravity="top|right" |
117 | | - android:layout_marginEnd="8dp" |
118 | | - android:layout_marginTop="5dp" |
119 | | - app:layout_constraintTop_toTopOf="parent" |
120 | | - app:layout_constraintEnd_toEndOf="parent" |
121 | | - tools:layout_height="200dp" |
122 | | - tools:background="#eee" /> |
123 | | - |
124 | | - <FrameLayout |
125 | | - android:id="@+id/roadNameLayout" |
126 | | - android:layout_width="wrap_content" |
127 | | - android:layout_height="0dp" |
128 | | - android:layout_gravity="center" |
129 | | - tools:background="#eee" |
130 | | - tools:layout_height="52dp" |
131 | | - tools:layout_width="140dp" |
132 | | - app:layout_constraintBottom_toBottomOf="parent" |
133 | | - app:layout_constraintEnd_toEndOf="parent" |
134 | | - app:layout_constraintStart_toStartOf="parent" |
135 | | - android:layout_marginBottom="8dp" |
136 | | - app:layout_constraintHeight_max="62dp" /> |
137 | | - |
138 | | - </androidx.constraintlayout.widget.ConstraintLayout> |
139 | | - |
140 | | - </androidx.coordinatorlayout.widget.CoordinatorLayout> |
| 27 | + android:layout_height="match_parent"> |
| 28 | + |
| 29 | + <androidx.constraintlayout.widget.Guideline |
| 30 | + android:id="@+id/guidelineBottom" |
| 31 | + android:layout_width="wrap_content" |
| 32 | + android:layout_height="wrap_content" |
| 33 | + android:orientation="horizontal" |
| 34 | + app:layout_constraintGuide_end="0dp" |
| 35 | + tools:layout_constraintGuide_end="100dp" /> |
| 36 | + |
| 37 | + <androidx.constraintlayout.widget.Guideline |
| 38 | + android:id="@+id/guidelineBegin" |
| 39 | + android:layout_width="wrap_content" |
| 40 | + android:layout_height="wrap_content" |
| 41 | + android:orientation="vertical" |
| 42 | + app:layout_constraintGuide_begin="375dp" |
| 43 | + tools:layout_constraintGuide_begin="375dp" /> |
| 44 | + |
| 45 | + <FrameLayout |
| 46 | + android:id="@+id/guidanceLayout" |
| 47 | + android:layout_width="wrap_content" |
| 48 | + android:layout_height="0dp" |
| 49 | + app:layout_constraintStart_toStartOf="parent" |
| 50 | + app:layout_constraintTop_toTopOf="parent" |
| 51 | + tools:background="@color/mapbox_main_maneuver_background_color" |
| 52 | + tools:layout_height="120dp" /> |
| 53 | + |
| 54 | + <FrameLayout |
| 55 | + android:id="@+id/scalebarLayout" |
| 56 | + android:layout_width="wrap_content" |
| 57 | + android:layout_height="wrap_content" |
| 58 | + app:layout_constraintStart_toStartOf="@id/guidanceLayout" |
| 59 | + app:layout_constraintTop_toTopOf="parent" /> |
| 60 | + |
| 61 | + <FrameLayout |
| 62 | + android:id="@+id/speedLimitLayout" |
| 63 | + android:layout_width="75dp" |
| 64 | + android:layout_height="wrap_content" |
| 65 | + android:layout_gravity="start|top" |
| 66 | + android:layout_marginStart="4dp" |
| 67 | + android:layout_marginTop="8dp" |
| 68 | + app:layout_constraintStart_toEndOf="@id/guidanceLayout" |
| 69 | + app:layout_constraintTop_toBottomOf="@id/scalebarLayout" |
| 70 | + tools:background="#eee" |
| 71 | + tools:layout_height="60dp" |
| 72 | + tools:layout_width="50dp" /> |
| 73 | + |
| 74 | + <FrameLayout |
| 75 | + android:id="@+id/emptyLeftContainer" |
| 76 | + android:layout_width="0dp" |
| 77 | + android:layout_height="0dp" |
| 78 | + android:layout_gravity="start|top" |
| 79 | + android:layout_marginStart="4dp" |
| 80 | + android:layout_marginTop="8dp" |
| 81 | + android:layout_marginBottom="8dp" |
| 82 | + app:layout_constraintBottom_toTopOf="@id/guidelineBottom" |
| 83 | + app:layout_constraintEnd_toStartOf="@id/guidelineBegin" |
| 84 | + app:layout_constraintStart_toStartOf="parent" |
| 85 | + app:layout_constraintTop_toBottomOf="@id/speedLimitLayout" |
| 86 | + tools:background="#F6A1A1" /> |
| 87 | + |
| 88 | + <FrameLayout |
| 89 | + android:id="@+id/emptyRightContainer" |
| 90 | + android:layout_width="wrap_content" |
| 91 | + android:layout_height="wrap_content" |
| 92 | + android:layout_gravity="start|top" |
| 93 | + android:layout_marginStart="4dp" |
| 94 | + android:layout_marginTop="8dp" |
| 95 | + android:layout_marginEnd="4dp" |
| 96 | + android:layout_marginBottom="8dp" |
| 97 | + app:layout_constraintBottom_toTopOf="@id/roadNameLayout" |
| 98 | + app:layout_constraintEnd_toEndOf="parent" |
| 99 | + app:layout_constraintTop_toBottomOf="@id/actionListLayout" |
| 100 | + tools:background="#F6A1A1" |
| 101 | + tools:layout_height="130dp" |
| 102 | + tools:layout_width="76dp" /> |
| 103 | + |
| 104 | + <FrameLayout |
| 105 | + android:id="@+id/actionListLayout" |
| 106 | + android:layout_width="@dimen/mapbox_actionList_width" |
| 107 | + android:layout_height="wrap_content" |
| 108 | + android:layout_marginTop="5dp" |
| 109 | + android:layout_marginEnd="8dp" |
| 110 | + android:gravity="top|right" |
| 111 | + app:layout_constraintEnd_toEndOf="parent" |
| 112 | + app:layout_constraintTop_toTopOf="parent" |
| 113 | + tools:background="#eee" |
| 114 | + tools:layout_height="200dp" /> |
| 115 | + |
| 116 | + <FrameLayout |
| 117 | + android:id="@+id/roadNameLayout" |
| 118 | + android:layout_width="wrap_content" |
| 119 | + android:layout_height="0dp" |
| 120 | + android:layout_gravity="center" |
| 121 | + android:layout_marginBottom="8dp" |
| 122 | + app:layout_constraintBottom_toBottomOf="parent" |
| 123 | + app:layout_constraintEnd_toEndOf="parent" |
| 124 | + app:layout_constraintHeight_max="62dp" |
| 125 | + app:layout_constraintStart_toStartOf="parent" |
| 126 | + tools:background="#eee" |
| 127 | + tools:layout_height="52dp" |
| 128 | + tools:layout_width="140dp" /> |
| 129 | + |
| 130 | + </androidx.constraintlayout.widget.ConstraintLayout> |
141 | 131 |
|
142 | 132 | <FrameLayout |
143 | 133 | android:id="@+id/infoPanelLayout" |
|
0 commit comments