Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1224)

Unified Diff: chrome/android/java/res/layout/default_search_engine_first_run_fragment.xml

Issue 2844323003: 🔍 Add first run dialog for selecting search engine (Closed)
Patch Set: 🔍 Add First Run dialog for selecting search engine Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/res/layout/default_search_engine_first_run_fragment.xml
diff --git a/chrome/android/java/res/layout/default_search_engine_first_run_fragment.xml b/chrome/android/java/res/layout/default_search_engine_first_run_fragment.xml
new file mode 100644
index 0000000000000000000000000000000000000000..b74e07dd2005ce342c0e3d457a38e499443e8c15
--- /dev/null
+++ b/chrome/android/java/res/layout/default_search_engine_first_run_fragment.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2017 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file.
+-->
+
+<!-- Layout used to present a set of default search engines to the user. -->
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:chrome="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@color/signin_body_background"
+ android:orientation="vertical" >
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1" >
+
+ <org.chromium.chrome.browser.firstrun.FirstRunChooserView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:fadeScrollbars="false"
+ android:requiresFadingEdge="vertical"
+ android:fadingEdgeLength="48dp" >
+
+ <LinearLayout
+ android:id="@+id/scrolling_content"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <!-- The layout_width/layout_height is set to 16/9 dynamically in Java -->
+ <TextView
+ android:id="@+id/chooser_title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="bottom"
+ android:paddingStart="@dimen/signin_chooser_padding"
+ android:paddingEnd="@dimen/signin_chooser_padding"
+ android:paddingBottom="@dimen/signin_chooser_padding"
+ android:background="@color/signin_head_background"
+ android:textColor="@color/default_text_color"
+ android:textSize="@dimen/fre_title_text_size"
+ android:text="@string/search_engine_dialog_title" />
+
+ <View style="@style/Divider" />
+
+ <org.chromium.chrome.browser.widget.RadioButtonLayout
+ android:id="@+id/engine_controls"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="12dp"
+ android:layout_marginEnd="@dimen/signin_chooser_padding" />
+ </LinearLayout>
+ </org.chromium.chrome.browser.firstrun.FirstRunChooserView>
+ </FrameLayout>
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/search_engine_dialog_footer"
+ android:textColor="@color/descriptive_text_color"
+ android:textSize="@dimen/fre_normal_text_size"
+ android:padding="@dimen/signin_chooser_padding" />
+
+ <!--suppress ButtonStyle -->
+ <org.chromium.ui.widget.ButtonCompat
+ android:id="@+id/button_primary"
+ android:layout_width="wrap_content"
+ android:layout_height="36dp"
+ android:layout_gravity="end"
+ android:layout_marginBottom="16dp"
+ android:layout_marginStart="16dp"
+ android:layout_marginEnd="22dp"
+ android:paddingStart="@dimen/fre_button_padding"
+ android:paddingEnd="@dimen/fre_button_padding"
+ android:text="@string/ok"
+ android:textAllCaps="true"
+ android:textColor="@android:color/white"
+ android:textSize="14sp"
+ chrome:buttonColor="@color/light_active_color"
+ chrome:buttonRaised="false" />
+
+</LinearLayout>

Powered by Google App Engine
This is Rietveld 408576698