1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright 2023 The Android Open Source Project
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16  -->
17
18<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    xmlns:tools="http://schemas.android.com/tools"
21    android:id="@+id/drawer"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent"
24    tools:context=".MainActivity">
25
26    <LinearLayout
27        android:layout_width="match_parent"
28        android:layout_height="match_parent"
29        android:orientation="vertical">
30
31        <TextView
32            android:id="@+id/title_bar"
33            android:layout_width="match_parent"
34            android:layout_height="50dp"
35            android:textSize="20sp"
36            android:gravity="center"
37            android:textStyle="bold"
38            android:textColor="@color/white"
39            android:background="@color/teal_700" />
40
41        <Button
42            android:id="@+id/toggle_drawer_button"
43            android:layout_width="match_parent"
44            android:layout_height="50dp"
45            android:text="Open Options" />
46
47        <FrameLayout
48            android:id="@+id/content_fragment_container"
49            android:layout_width="match_parent"
50            android:layout_height="0dp"
51            android:layout_weight="1" />
52    </LinearLayout>
53
54    <com.google.android.material.navigation.NavigationView
55        android:id="@+id/navigation_view"
56        android:layout_width="wrap_content"
57        android:layout_height="match_parent"
58        android:layout_gravity="start"
59        app:menu="@layout/action_menu">
60
61        <Spinner
62            android:id="@+id/ad_format_dropdown_menu"
63            android:layout_width="match_parent"
64            android:layout_height="wrap_content"
65            android:layout_gravity="center"
66            android:background="@android:drawable/btn_dropdown"
67            android:spinnerMode="dropdown" />
68
69        <Spinner
70            android:id="@+id/mediation_dropdown_menu"
71            android:layout_width="match_parent"
72            android:layout_height="wrap_content"
73            android:layout_gravity="center"
74            android:layout_marginTop="50dp"
75            android:background="@android:drawable/btn_dropdown"
76            android:spinnerMode="dropdown" />
77
78        <Spinner
79            android:id="@+id/ad_type_dropdown_menu"
80            android:layout_width="match_parent"
81            android:layout_height="wrap_content"
82            android:layout_gravity="center"
83            android:layout_marginTop="100dp"
84            android:background="@android:drawable/btn_dropdown"
85            android:spinnerMode="dropdown" />
86
87        <com.google.android.material.switchmaterial.SwitchMaterial
88            android:id="@+id/display_viewability_switch"
89            android:layout_width="wrap_content"
90            android:layout_height="wrap_content"
91            android:layout_gravity="center"
92            android:layout_marginTop="150dp"
93            android:checked="false"
94            android:text="@string/display_viewability_switch" />
95
96        <com.google.android.material.switchmaterial.SwitchMaterial
97            android:id="@+id/zorder_above_switch"
98            android:layout_width="wrap_content"
99            android:layout_height="wrap_content"
100            android:layout_gravity="center"
101            android:layout_marginTop="200dp"
102            android:checked="false"
103            android:text="@string/zorder_above_switch" />
104
105        <com.google.android.material.switchmaterial.SwitchMaterial
106            android:id="@+id/compose_switch"
107            android:layout_width="wrap_content"
108            android:layout_height="wrap_content"
109            android:layout_gravity="center"
110            android:layout_marginTop="250dp"
111            android:checked="false"
112            android:text="@string/compose_switch" />
113
114        <Button
115            android:id="@+id/trigger_sandbox_death"
116            android:layout_width="wrap_content"
117            android:layout_height="wrap_content"
118            android:layout_gravity="center"
119            android:layout_marginTop="300dp"
120            android:text="@string/trigger_sandbox_death_button" />
121    </com.google.android.material.navigation.NavigationView>
122</androidx.drawerlayout.widget.DrawerLayout>
123