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

Side by Side Diff: chrome/android/java/res/layout/contextual_search_view.xml

Issue 1050163004: [Contextual Search] Implements Opt-out promo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. -->
5
6 <!-- Contextual Search view. -->
7 <org.chromium.chrome.browser.widget.ContextualSearchControl
8 xmlns:android="http://schemas.android.com/apk/res/android"
9 xmlns:chrome="http://schemas.android.com/apk/res-auto"
10 android:id="@+id/contextual_search_view"
11 android:layout_width="match_parent"
12 android:layout_height="wrap_content"
13 android:layout_gravity="bottom"
14 android:background="#FFF"
15 android:gravity="center"
16 android:orientation="horizontal"
17 >
18 <!-- Search Bar Text -->
19 <TextView
20 android:id="@+id/surrounding_text_start"
21 android:layout_width="0dp"
22 android:layout_height="match_parent"
23 android:layout_marginStart="7dp"
24 android:ellipsize="none"
25 android:fadingEdge="horizontal"
26 android:fadingEdgeLength="30dp"
27 android:gravity="end"
28 android:layout_weight="1"
29 android:requiresFadingEdge="horizontal"
30 android:singleLine="true"
31 android:textColor="#CCC"
32 android:textSize="@dimen/contextual_search_text_size"
33 />
34 <TextView
35 android:id="@+id/main_text"
36 android:layout_width="wrap_content"
37 android:layout_height="match_parent"
38 android:layout_marginStart="5dp"
39 android:layout_marginEnd="5dp"
40 android:gravity="center_horizontal"
41 android:ellipsize="end"
42 android:singleLine="true"
43 android:textColor="#000"
44 android:textSize="@dimen/contextual_search_text_size"
45 />
46 <TextView
47 android:id="@+id/surrounding_text_end"
48 android:layout_width="0dp"
49 android:layout_height="match_parent"
50 android:layout_marginEnd="7dp"
51 android:ellipsize="none"
52 android:fadingEdge="horizontal"
53 android:fadingEdgeLength="30dp"
54 android:gravity="start"
55 android:layout_weight="1"
56 android:requiresFadingEdge="horizontal"
57 android:singleLine="true"
58 android:textColor="#CCC"
59 android:textSize="@dimen/contextual_search_text_size"
60 />
61 </org.chromium.chrome.browser.widget.ContextualSearchControl>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698