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

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

Issue 2799783003: 🔍 Clean up the search widget code (Closed)
Patch Set: 🔍 Clean up the search widget Created 3 years, 8 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/search_activity.xml
diff --git a/chrome/android/java/res/layout/search_activity.xml b/chrome/android/java/res/layout/search_activity.xml
new file mode 100644
index 0000000000000000000000000000000000000000..378e268adbfb364330998c329b16a6cdc92119fd
--- /dev/null
+++ b/chrome/android/java/res/layout/search_activity.xml
@@ -0,0 +1,57 @@
+<?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. -->
+
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/control_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#9affffff" >
+
+ <!-- This view is unnecessary visually, but required for the LocationBarLayout. -->
+ <org.chromium.chrome.browser.searchwidget.SearchActivityFadingBackgroundView
+ android:id="@+id/fading_focus_target"
+ android:layout_width="0dp"
+ android:layout_height="0dp" />
+
+ <ViewStub
+ android:id="@+id/omnibox_results_container_stub"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@android:color/white"
+ android:layout="@layout/omnibox_results_container" />
+
+ <ImageView
+ android:id="@+id/toolbar_shadow"
+ android:src="@drawable/toolbar_shadow"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="@dimen/toolbar_height_no_shadow"
+ android:scaleType="fitXY"
+ android:contentDescription="@null" />
+
+ <FrameLayout
+ android:id="@+id/toolbar"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/toolbar_height_no_shadow"
+ android:background="@android:color/white"
+ android:clickable="true" >
+
+ <!-- TODO(dfalcantara): Ask UX about what to do for tablets. -->
+ <org.chromium.chrome.browser.searchwidget.SearchActivityLocationBarLayout
+ android:id="@+id/search_location_bar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="@dimen/tablet_toolbar_start_padding_no_buttons"
+ android:layout_marginEnd="@dimen/tablet_toolbar_start_padding_no_buttons"
+ android:layout_marginTop="@dimen/tablet_toolbar_start_padding_no_buttons" />
+
+ </FrameLayout>
+
+ <FrameLayout
+ android:id="@+id/bottom_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+</FrameLayout>

Powered by Google App Engine
This is Rietveld 408576698