Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2026 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:map3d="http://schemas.android.com/apk/res-auto"
android:id="@+id/map_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
>

<!-- Top AppBar with Navigation Toolbar -->
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar_layout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="#80BB86FC"
app:elevation="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
>

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/top_bar"
style="@style/Widget.MaterialComponents.Toolbar.Primary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
app:title="@string/feature_title_cloud_styling"
app:titleTextColor="@android:color/white"
/>
</com.google.android.material.appbar.AppBarLayout>

<!-- Fullscreen 3D Map View configured with custom Cloud Map ID -->
<com.google.android.gms.maps3d.Map3DView
android:id="@+id/map3dView"
android:layout_width="0dp"
android:layout_height="0dp"
map3d:mapId="9a35234a36da44d2c47bf626"
map3d:mode="roadmap"
map3d:centerLat="37.7915"
map3d:centerLng="-122.4010"
map3d:centerAlt="250"
map3d:heading="45"
map3d:tilt="65"
map3d:range="800"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>

<!-- Bottom Map Mode Selection Card Overlay -->
<androidx.cardview.widget.CardView
android:id="@+id/control_panel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="12dp"
app:cardCornerRadius="16dp"
app:cardElevation="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="12dp"
android:orientation="vertical"
>

<TextView
style="@style/TextAppearance.Material3.LabelLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Map Mode"

Check warning

Code scanning / Android Lint

Hardcoded text Warning

Hardcoded string "Map Mode", should use @string resource
android:textStyle="bold"
/>

<RadioGroup
android:id="@+id/rg_map_mode"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:gravity="center_vertical"
android:orientation="horizontal"
>

<RadioButton
android:id="@+id/rb_roadmap"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="true"
android:text="Roadmap"

Check warning

Code scanning / Android Lint

Hardcoded text Warning

Hardcoded string "Roadmap", should use @string resource
/>

<RadioButton
android:id="@+id/rb_hybrid"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Hybrid"

Check warning

Code scanning / Android Lint

Hardcoded text Warning

Hardcoded string "Hybrid", should use @string resource
/>

<RadioButton
android:id="@+id/rb_satellite"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Satellite"

Check warning

Code scanning / Android Lint

Hardcoded text Warning

Hardcoded string "Satellite", should use @string resource
/>
</RadioGroup>
</LinearLayout>
</androidx.cardview.widget.CardView>

</androidx.constraintlayout.widget.ConstraintLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2026 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<androidx.coordinatorlayout.widget.CoordinatorLayout
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"
>

<!-- Fullscreen 3D Map View -->
<com.google.android.gms.maps3d.Map3DView
android:id="@+id/map3dView"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>



<!-- Bottom Control Panel Card -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_margin="12dp"
app:cardCornerRadius="16dp"
app:cardElevation="8dp"
>

<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxHeight="320dp"
>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="12dp"
>

<!-- Environment Selection Header -->
<TextView
style="@style/TextAppearance.Material3.LabelLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Path Environment:"

Check warning

Code scanning / Android Lint

Hardcoded text Warning

Hardcoded string "Path Environment:", should use @string resource
android:textStyle="bold"
/>

<RadioGroup
android:id="@+id/rg_environment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="2dp"
>

<RadioButton
android:id="@+id/rb_urban"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="true"
android:text="Urban"

Check warning

Code scanning / Android Lint

Hardcoded text Warning

Hardcoded string "Urban", should use @string resource
/>

<RadioButton
android:id="@+id/rb_rural"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Rural"

Check warning

Code scanning / Android Lint

Hardcoded text Warning

Hardcoded string "Rural", should use @string resource
/>
</RadioGroup>

<!-- Play / Pause and Progress Row -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginTop="4dp"
>

<com.google.android.material.button.MaterialButton
android:id="@+id/btn_play_pause"
style="@style/Widget.Material3.Button.IconButton.Filled"
android:layout_width="44dp"
android:layout_height="44dp"
app:icon="@drawable/play_arrow_24px"
/>

<com.google.android.material.slider.Slider
android:id="@+id/progress_slider"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:valueFrom="0.0"
android:valueTo="1.0"
android:value="0.0"
/>
</LinearLayout>

<!-- Camera Parameter Sliders -->
<TextView
android:id="@+id/range_slider_label"
style="@style/TextAppearance.Material3.LabelMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="Camera Range: 300m"

Check warning

Code scanning / Android Lint

Hardcoded text Warning

Hardcoded string "Camera Range: 300m", should use @string resource
/>

<com.google.android.material.slider.Slider
android:id="@+id/range_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:valueFrom="50.0"
android:valueTo="1000.0"
android:value="300.0"
/>

<TextView
android:id="@+id/altitude_slider_label"
style="@style/TextAppearance.Material3.LabelMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Ground Altitude: 20m"

Check warning

Code scanning / Android Lint

Hardcoded text Warning

Hardcoded string "Ground Altitude: 20m", should use @string resource
/>

<com.google.android.material.slider.Slider
android:id="@+id/altitude_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:valueFrom="5.0"
android:valueTo="200.0"
android:value="20.0"
/>

<TextView
android:id="@+id/heading_slider_label"
style="@style/TextAppearance.Material3.LabelMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Heading Offset: 0°"

Check warning

Code scanning / Android Lint

Hardcoded text Warning

Hardcoded string "Heading Offset: 0°", should use @string resource
/>

<com.google.android.material.slider.Slider
android:id="@+id/heading_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:valueFrom="-180.0"
android:valueTo="180.0"
android:value="0.0"
/>

<TextView
android:id="@+id/tilt_slider_label"
style="@style/TextAppearance.Material3.LabelMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Camera Tilt: 70°"

Check warning

Code scanning / Android Lint

Hardcoded text Warning

Hardcoded string "Camera Tilt: 70°", should use @string resource
/>

<com.google.android.material.slider.Slider
android:id="@+id/tilt_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:valueFrom="0.0"
android:valueTo="85.0"
android:value="70.0"
/>

<TextView
android:id="@+id/speed_slider_label"
style="@style/TextAppearance.Material3.LabelMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Follow Speed: 30 m/s"

Check warning

Code scanning / Android Lint

Hardcoded text Warning

Hardcoded string "Follow Speed: 30 m/s", should use @string resource
/>

<com.google.android.material.slider.Slider
android:id="@+id/speed_slider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:valueFrom="5.0"
android:valueTo="100.0"
android:value="30.0"
/>
</LinearLayout>
</ScrollView>
</androidx.cardview.widget.CardView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
Loading
Loading