1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 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<PreferenceScreen
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19    xmlns:android="http://schemas.android.com/apk/res/android">
20
21    <PreferenceCategory
22        app:key="banner_view_category"
23        app:title="@string/view">
24        <ListPreference
25            app:key="banner_view_type"
26            app:title="@string/view_type"
27            app:useSimpleSummaryProvider="true"
28            android:entries="@array/banner_view_type"
29            android:entryValues="@array/banner_view_type_values"
30            android:defaultValue="RANDOM_COLOUR"
31        />
32        <EditTextPreference
33            app:key="banner_video_url"
34            app:title="@string/video_url"
35            app:useSimpleSummaryProvider="true"
36        />
37    </PreferenceCategory>
38
39    <PreferenceCategory
40        app:key="banner_behaviour_category"
41        app:title="@string/behaviour">
42        <ListPreference
43            app:key="banner_on_click"
44            app:title="@string/on_click"
45            app:useSimpleSummaryProvider="true"
46            android:entries="@array/banner_on_click"
47            android:entryValues="@array/banner_on_click_values"
48            android:defaultValue="OPEN_CHROME"
49        />
50        <EditTextPreference
51            app:key="package_to_open"
52            app:title="@string/on_click_package"
53            app:useSimpleSummaryProvider="true"
54        />
55    </PreferenceCategory>
56
57    <PreferenceCategory
58        app:key="banner_positioning"
59        app:title="@string/positioning">
60        <ListPreference
61            app:key="banner_placement"
62            app:title="@string/placement"
63            app:useSimpleSummaryProvider="true"
64            android:entries="@array/banner_placement"
65            android:entryValues="@array/banner_placement_values"
66            android:defaultValue="BOTTOM"
67        />
68    </PreferenceCategory>
69
70    <PreferenceCategory
71        app:key="banner_size"
72        app:title="@string/size">
73        <ListPreference
74            app:key="banner_ad_size"
75            app:title="@string/ad_size"
76            app:useSimpleSummaryProvider="true"
77            android:entries="@array/banner_ad_size"
78            android:entryValues="@array/banner_ad_size_values"
79            android:defaultValue="SMALL"
80        />
81    </PreferenceCategory>
82
83</PreferenceScreen>