diff options
Diffstat (limited to 'mobile/android/geckoview_example/src/main/res')
27 files changed, 393 insertions, 0 deletions
diff --git a/mobile/android/geckoview_example/src/main/res/drawable-hdpi/alert_camera.png b/mobile/android/geckoview_example/src/main/res/drawable-hdpi/alert_camera.png Binary files differnew file mode 100644 index 0000000000..6c7b806fa9 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-hdpi/alert_camera.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-hdpi/alert_mic.png b/mobile/android/geckoview_example/src/main/res/drawable-hdpi/alert_mic.png Binary files differnew file mode 100644 index 0000000000..f56254888b --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-hdpi/alert_mic.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-hdpi/alert_mic_camera.png b/mobile/android/geckoview_example/src/main/res/drawable-hdpi/alert_mic_camera.png Binary files differnew file mode 100644 index 0000000000..091ec077dd --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-hdpi/alert_mic_camera.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-hdpi/ic_crash.png b/mobile/android/geckoview_example/src/main/res/drawable-hdpi/ic_crash.png Binary files differnew file mode 100644 index 0000000000..bb0a241e33 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-hdpi/ic_crash.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-hdpi/ic_status_logo.png b/mobile/android/geckoview_example/src/main/res/drawable-hdpi/ic_status_logo.png Binary files differnew file mode 100644 index 0000000000..374ef69857 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-hdpi/ic_status_logo.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-mdpi/ic_crash.png b/mobile/android/geckoview_example/src/main/res/drawable-mdpi/ic_crash.png Binary files differnew file mode 100644 index 0000000000..d385b3e5cc --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-mdpi/ic_crash.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-xhdpi/alert_camera.png b/mobile/android/geckoview_example/src/main/res/drawable-xhdpi/alert_camera.png Binary files differnew file mode 100644 index 0000000000..efe4811071 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-xhdpi/alert_camera.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-xhdpi/alert_mic.png b/mobile/android/geckoview_example/src/main/res/drawable-xhdpi/alert_mic.png Binary files differnew file mode 100644 index 0000000000..198a7ba318 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-xhdpi/alert_mic.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-xhdpi/alert_mic_camera.png b/mobile/android/geckoview_example/src/main/res/drawable-xhdpi/alert_mic_camera.png Binary files differnew file mode 100644 index 0000000000..26ba6520b9 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-xhdpi/alert_mic_camera.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-xhdpi/ic_crash.png b/mobile/android/geckoview_example/src/main/res/drawable-xhdpi/ic_crash.png Binary files differnew file mode 100644 index 0000000000..3d9bd68082 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-xhdpi/ic_crash.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/alert_camera.png b/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/alert_camera.png Binary files differnew file mode 100644 index 0000000000..5c21f5bd4f --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/alert_camera.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/alert_mic.png b/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/alert_mic.png Binary files differnew file mode 100644 index 0000000000..561816f087 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/alert_mic.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/alert_mic_camera.png b/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/alert_mic_camera.png Binary files differnew file mode 100644 index 0000000000..3b34d229ed --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/alert_mic_camera.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/ic_crash.png b/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/ic_crash.png Binary files differnew file mode 100644 index 0000000000..39d5c7f57c --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/ic_crash.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/logo.png b/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/logo.png Binary files differnew file mode 100644 index 0000000000..162891e993 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable-xxhdpi/logo.png diff --git a/mobile/android/geckoview_example/src/main/res/drawable/rounded_bg.xml b/mobile/android/geckoview_example/src/main/res/drawable/rounded_bg.xml new file mode 100644 index 0000000000..9cfaf557e2 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable/rounded_bg.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <solid + android:id="@+id/browser_action_badge_background" + android:color="#176d7a" + /> + <corners android:radius="5dp" /> +</shape>
\ No newline at end of file diff --git a/mobile/android/geckoview_example/src/main/res/drawable/tab_number_background.xml b/mobile/android/geckoview_example/src/main/res/drawable/tab_number_background.xml new file mode 100644 index 0000000000..d5292fda8f --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/drawable/tab_number_background.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + + <solid android:color="@android:color/transparent" /> + + <corners + android:bottomRightRadius="2dp" + android:bottomLeftRadius="2dp" + android:topLeftRadius="2dp" + android:topRightRadius="2dp"/> + + <stroke + android:width="1dp" + android:color="@android:color/darker_gray" /> + +</shape>
\ No newline at end of file diff --git a/mobile/android/geckoview_example/src/main/res/layout/activity_settings.xml b/mobile/android/geckoview_example/src/main/res/layout/activity_settings.xml new file mode 100644 index 0000000000..d6c4025ea6 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/layout/activity_settings.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout + 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" + android:orientation="vertical"> + + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@color/colorBackgroundDark" + app:theme="@style/ToolBarStyle" + android:elevation="4dp"/> + + <FrameLayout + android:id="@+id/container" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:background="@color/colorPrimaryDark"/> + +</LinearLayout> diff --git a/mobile/android/geckoview_example/src/main/res/layout/browser_action.xml b/mobile/android/geckoview_example/src/main/res/layout/browser_action.xml new file mode 100644 index 0000000000..fa06e95e88 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/layout/browser_action.xml @@ -0,0 +1,32 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="?android:actionBarSize" + android:layout_height="?android:actionBarSize" + android:gravity="center" + android:orientation="vertical"> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + > + <ImageView + android:id="@+id/browser_action_icon" + android:layout_width="36dp" + android:layout_height="36dp" + android:layout_centerInParent="true" + /> + </RelativeLayout> + + <TextView + android:id="@+id/browser_action_badge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/rounded_bg" + android:textColor="@color/colorPrimaryDark" + android:layout_alignParentRight="true" + android:paddingLeft="3dp" + android:paddingRight="3dp" + android:layout_marginTop="3dp" + android:layout_marginRight="3dp" + android:text="12" + /> +</RelativeLayout> diff --git a/mobile/android/geckoview_example/src/main/res/layout/browser_action_popup.xml b/mobile/android/geckoview_example/src/main/res/layout/browser_action_popup.xml new file mode 100644 index 0000000000..a1bb627d17 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/layout/browser_action_popup.xml @@ -0,0 +1,13 @@ +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <org.mozilla.geckoview.GeckoView + android:id="@+id/gecko_view_popup" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scrollbars="none" + /> +</RelativeLayout> diff --git a/mobile/android/geckoview_example/src/main/res/layout/geckoview_activity.xml b/mobile/android/geckoview_example/src/main/res/layout/geckoview_activity.xml new file mode 100644 index 0000000000..8ee4a615a9 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/layout/geckoview_activity.xml @@ -0,0 +1,32 @@ +<androidx.coordinatorlayout.widget.CoordinatorLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:id="@+id/main" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <org.mozilla.geckoview_example.NestedGeckoView + android:id="@+id/gecko_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scrollbars="none" + app:layout_behavior="org.mozilla.geckoview_example.GeckoViewBottomBehavior" + /> + + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?android:actionBarSize" + android:layout_gravity="bottom" + android:background="#eeeeee" + app:layout_behavior="org.mozilla.geckoview_example.ToolbarBottomBehavior" + app:layout_scrollFlags="scroll|enterAlways|snap|exitUntilCollapsed" /> + + <ProgressBar + android:id="@+id/page_progress" + style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal" + android:layout_width="match_parent" + android:layout_height="3dp" + android:layout_alignTop="@id/gecko_view" /> + +</androidx.coordinatorlayout.widget.CoordinatorLayout> diff --git a/mobile/android/geckoview_example/src/main/res/menu/actions.xml b/mobile/android/geckoview_example/src/main/res/menu/actions.xml new file mode 100644 index 0000000000..13f2721bcf --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/menu/actions.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> + <item android:title="@string/tracking_protection_ex" android:checkable="true" + android:id="@+id/action_tpe" app:showAsAction="never" /> + <item android:title="@string/desktop_mode" android:id="@+id/desktop_mode" android:checkable="true" + app:showAsAction="never" /> + <item android:title="@string/collapse" android:id="@+id/collapse" android:checkable="true" + app:showAsAction="never" /> + <item android:title="@string/private_browsing" android:checkable="true" android:id="@+id/action_pb"/> + <item android:title="@string/new_tab" android:id="@+id/action_new_tab"/> + <item android:title="@string/install_addon" android:id="@+id/install_addon"/> + <item android:title="@string/update_addon" android:id="@+id/update_addon"/> + <item android:title="@string/close_tab" android:id="@+id/action_close_tab"/> + <item android:title="@string/forward" android:id="@+id/action_forward"/> + <item android:title="@string/reload" android:id="@+id/action_reload"/> + <item android:title="@string/save_pdf" android:id="@+id/save_pdf"/> + <item android:title="@string/print_page" android:id="@+id/print_page"/> + <item android:title="@string/settings" android:id="@+id/settings" app:showAsAction="never" /> +</menu> diff --git a/mobile/android/geckoview_example/src/main/res/values/colors.xml b/mobile/android/geckoview_example/src/main/res/values/colors.xml new file mode 100644 index 0000000000..157834fe0c --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/values/colors.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#3F51B5</color> + <color name="colorBackgroundDark">#00a996</color> + <color name="colorPrimaryDark">#FFFFFF</color> + <color name="colorAccent">#FF4081</color> +</resources> diff --git a/mobile/android/geckoview_example/src/main/res/values/ids.xml b/mobile/android/geckoview_example/src/main/res/values/ids.xml new file mode 100644 index 0000000000..068f6e3d95 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/values/ids.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <item name="toolbar_layout" type="id"/> + <item name="url_bar" type="id"/> + <item name="browser_action" type="id"/> + <item name="tabs_button" type="id"/> +</resources> diff --git a/mobile/android/geckoview_example/src/main/res/values/strings.xml b/mobile/android/geckoview_example/src/main/res/values/strings.xml new file mode 100644 index 0000000000..2dbc2a529c --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/values/strings.xml @@ -0,0 +1,152 @@ +<resources> + <string name="app_name">GeckoView Example</string> + <string name="activity_label">GeckoView Example</string> + <string name="location_hint">Enter URL or search keywords...</string> + <string name="username">Username</string> + <string name="password">Password</string> + <string name="clear_field">Clear</string> + <string name="request_storage">Allow access to device storage for "%1$s"?</string> + <string name="request_storage_access">Allow third parties to access first party storage for "%1$s"?</string> + <string name="request_geolocation">Share location with "%1$s"?</string> + <string name="request_notification">Allow notifications for "%1$s"?</string> + <string name="request_video">Share video with "%1$s"</string> + <string name="request_audio">Share audio with "%1$s"</string> + <string name="request_media">Share video and audio with "%1$s"</string> + <string name="request_xr">Share WebXR displays with "%1$s"?</string> + <string name="request_autoplay">Allow video to autoplay on "%1$s"?</string> + <string name="request_media_key_system_access">Allow system media key access for "%1$s"?</string> + <string name="media_back_camera">Back camera</string> + <string name="media_front_camera">Front camera</string> + <string name="media_microphone">Microphone</string> + <string name="media_other">Unknown source</string> + + <string name="crash_native">Native</string> + <string name="crash_java">Java</string> + <string name="crash_content_native">Content (Native)</string> + <string name="tracking_protection">Tracking Protection</string> + <string name="tracking_protection_ex">TP exception</string> + <string name="private_browsing">Private Browsing</string> + <string name="remote_debugging">Remote Debugging</string> + <string name="forward">Forward</string> + <string name="reload">Reload</string> + <string name="settings">Settings...</string> + <string name="crashed_title">GeckoView Example Crashed</string> + <string name="crashed_text">Tap to report to Mozilla.</string> + <string name="crashed_ignore">Ignore</string> + <string name="crashed_report">Report</string> + <string name="device_sharing_microphone">Microphone is on</string> + <string name="device_sharing_camera">Camera is on</string> + <string name="device_sharing_camera_and_mic">Camera and microphone are on</string> + <string name="new_tab">New tab</string> + <string name="install_addon">Install Add-on...</string> + <string name="install_addon_hint">Add-on URL: https://addons.mozilla.org/...</string> + <string name="update_addon">Update Add-on</string> + <string name="close_tab">Close tab</string> + <string name="desktop_mode">Desktop site</string> + <string name="collapse">Collapse GV</string> + <string name="slow_script">A script on this page is causing your web browser to run slowly</string> + <string name="wait">Wait</string> + <string name="stop">Stop</string> + <string name="install">Install</string> + <string name="cancel">Cancel</string> + <string name="addon_uri">WebExtension xpi URL</string> + <string name="save_pdf">Save as PDF</string> + <string name="print_page">Print Page</string> + + # Preferences + <string name="key_tracking_protection">tracking_protection</string> + <item type="bool" name="tracking_protection_default">true</item> + + <string name="key_javascript_enabled">javascript_enabled</string> + <item type="bool" name="javascript_enabled_default">true</item> + + <string name="key_remote_debugging">remote_debugging</string> + <item type="bool" name="remote_debugging_default">true</item> + + <string name="key_dfpi">dfpi</string> + <item type="bool" name="dfpi_default">false</item> + + <string name="key_autoplay">autoplay</string> + <item type="bool" name="autoplay_default">false</item> + + <string name="key_allow_extensions_in_private_browsing">allow_extensions_in_private_browsing</string> + <item type="bool" name="allow_extensions_in_private_browsing_default">false</item> + + <string name="key_user_agent_override">user_agent_override</string> + <string name="user_agent_override_default"></string> + <string-array name="user_agent_override_display_names"> + <item>Default</item> + <item>Chrome 80 on Android</item> + <item>Safari 12 on iPhone</item> + </string-array> + <string-array name="user_agent_override_values"> + <item></item> + <item>Mozilla/5.0 (Linux; Android 10; Z832 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Mobile Safari/537.36</item> + <item>Mozilla/5.0 (iPhone; CPU OS 10_15_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Mobile/14E304 Safari/605.1.15</item> + </string-array> + + <string name="key_cookie_banner_handling">cookie_banner_handling</string> + <string name="key_cookie_banner_handling_pb">cookie_banner_handling_pb</string> + <string name="cookie_banner_handling_default">disabled</string> + <string name="cookie_banner_handling_pb_default">reject_accept_all</string> + <string name="key_enhanced_tracking_protection">enhanced_tracking_protection</string> + <string name="enhanced_tracking_protection_default">standard</string> + <string-array name="enhanced_tracking_protection_display_names"> + <item>Disabled</item> + <item>Enabled (standard)</item> + <item>Enabled (strict)</item> + </string-array> + <string-array name="enhanced_tracking_protection_values"> + <item>disabled</item> + <item>standard</item> + <item>strict</item> + </string-array> + <string-array name="cookie_banner_handling_names"> + <item>Disabled</item> + <item>Enabled (reject all)</item> + <item>Enabled (reject or accept all)</item> + </string-array> + <string-array name="cookie_banner_handling_values"> + <item>disabled</item> + <item>reject_all</item> + <item>reject_accept_all</item> + </string-array> + + <string name="key_preferred_color_scheme">preferred_color_scheme</string> + <item type="integer" name="preferred_color_scheme_default">-1</item> + <string-array name="pref_preferred_color_scheme_display_names"> + <item>Follow System Preference</item> + <item>Light</item> + <item>Dark</item> + </string-array> + <string-array name="pref_preferred_color_scheme_values"> + <item>-1</item> + <item>0</item> + <item>1</item> + </string-array> + + <string name="key_display_mode">display_mode</string> + <item type="integer" name="display_mode_default">0</item> + <string-array name="pref_display_mode_names"> + <item>Browser</item> + <item>MinimalUi</item> + <item>Standalone</item> + <item>Fullscreen</item> + </string-array> + <string-array name="pref_display_mode_values"> + <item>0</item> + <item>1</item> + <item>2</item> + <item>3</item> + </string-array> + + <string name="before_unload_message">This page is asking you to confirm that you want to leave - data you have entered may not be saved</string> + <string name="before_unload_title">Are you sure?</string> + <string name="before_unload_leave_page">Leave Page</string> + <string name="before_unload_stay">Stay on Page</string> + + <string name="repost_confirm_message">To display this page, GeckoViewExample must send information that will repeat any action (such as a search or order confirmation) that was performed earlier.</string> + <string name="repost_confirm_title">Are you sure?</string> + <string name="repost_confirm_resend">Resend</string> + <string name="repost_confirm_cancel">Cancel</string> +</resources> diff --git a/mobile/android/geckoview_example/src/main/res/values/styles.xml b/mobile/android/geckoview_example/src/main/res/values/styles.xml new file mode 100644 index 0000000000..e8420145ba --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/values/styles.xml @@ -0,0 +1,7 @@ +<resources> + <style name="ToolBarStyle" parent="Theme.AppCompat"> + <item name="android:textColorPrimary">@android:color/white</item> + <item name="android:textColorSecondary">@android:color/white</item> + <item name="actionMenuTextColor">@android:color/white</item> + </style> +</resources> diff --git a/mobile/android/geckoview_example/src/main/res/xml/settings.xml b/mobile/android/geckoview_example/src/main/res/xml/settings.xml new file mode 100644 index 0000000000..a29be429a0 --- /dev/null +++ b/mobile/android/geckoview_example/src/main/res/xml/settings.xml @@ -0,0 +1,71 @@ +<PreferenceScreen + xmlns:app="http://schemas.android.com/apk/res-auto"> + + <SwitchPreferenceCompat + app:key="@string/key_tracking_protection" + app:title="Enable Tracking Protection" + app:defaultValue="@bool/tracking_protection_default"/> + <ListPreference + app:key="@string/key_enhanced_tracking_protection" + app:title="Enhanced Tracking Protection" + app:summary="%s" + app:entries="@array/enhanced_tracking_protection_display_names" + app:entryValues="@array/enhanced_tracking_protection_values" + app:defaultValue="@string/enhanced_tracking_protection_default"/> + <ListPreference + app:key="@string/key_cookie_banner_handling" + app:title="Cookie Banner Handling" + app:summary="%s" + app:entries="@array/cookie_banner_handling_names" + app:entryValues="@array/cookie_banner_handling_values" + app:defaultValue="@string/cookie_banner_handling_default"/> + <ListPreference + app:key="@string/key_cookie_banner_handling_pb" + app:title="Cookie Banner Handling Private mode" + app:summary="%s" + app:entries="@array/cookie_banner_handling_names" + app:entryValues="@array/cookie_banner_handling_values" + app:defaultValue="@string/cookie_banner_handling_pb_default"/> + <SwitchPreferenceCompat + app:key="@string/key_dfpi" + app:title="Enable Dynamic FPI" + app:defaultValue="@bool/dfpi_default"/> + <SwitchPreferenceCompat + app:key="@string/key_autoplay" + app:title="Allow Autoplay" + app:defaultValue="@bool/autoplay_default"/> + <SwitchPreferenceCompat + app:key="@string/key_remote_debugging" + app:title="Remote Debugging" + app:defaultValue="@bool/remote_debugging_default"/> + <ListPreference + app:key="@string/key_preferred_color_scheme" + app:title="Preferred Color Scheme" + app:summary="%s" + app:entries="@array/pref_preferred_color_scheme_display_names" + app:entryValues="@array/pref_preferred_color_scheme_values" + app:defaultValue="@integer/preferred_color_scheme_default"/> + <ListPreference + app:key="@string/key_user_agent_override" + app:title="User Agent String Override" + app:summary="%s" + app:entries="@array/user_agent_override_display_names" + app:entryValues="@array/user_agent_override_values" + app:defaultValue="@string/user_agent_override_default"/> + <SwitchPreferenceCompat + app:key="@string/key_allow_extensions_in_private_browsing" + app:title="Run extensions in private tabs" + app:defaultValue="@bool/allow_extensions_in_private_browsing_default"/> + <ListPreference + app:key="@string/key_display_mode" + app:title="Display Mode" + app:summary="%s" + app:entries="@array/pref_display_mode_names" + app:entryValues="@array/pref_display_mode_values" + app:defaultValue="@integer/display_mode_default"/> + <SwitchPreferenceCompat + app:key="@string/key_javascript_enabled" + app:title="Javascript Enabled" + app:defaultValue="@bool/javascript_enabled_default"/> + +</PreferenceScreen> |