Roll src/third_party/WebKit 3529d49:06e8485 (svn 202554:202555)
[chromium-blink-merge.git] / chrome / android / java / res / layout / reader_mode_view.xml
blob5af5c7f9638d066971b74610d33fb38c741fcbb9
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. -->
6 <!-- Reader Mode view. -->
7 <org.chromium.chrome.browser.dom_distiller.ReaderModeButtonView
8     xmlns:android="http://schemas.android.com/apk/res/android"
9     android:id="@+id/reader_mode_view"
10     android:layout_width="match_parent"
11     android:layout_height="wrap_content"
12     android:layout_gravity="center_vertical"
13     android:background="@drawable/reader_mode_bar_background"
14     android:paddingTop="16dp"
15     android:paddingBottom="16dp"
16     android:gravity="center_vertical|start"
17     android:orientation="vertical"
18     >
20     <!-- Lint flags this as a false positive overlap. -->
21     <!--suppress RelativeOverlap -->
22     <RelativeLayout
23         android:layout_width="match_parent"
24         android:layout_height="wrap_content">
25         <ImageView
26             android:id="@+id/main_icon"
27             android:src="@drawable/infobar_mobile_friendly"
28             android:layout_width="wrap_content"
29             android:layout_height="wrap_content"
30             android:layout_marginStart="16dp"
31             android:layout_alignParentStart="true"
32             android:layout_centerVertical="true"
33             android:contentDescription="@null"
34             />
35         <TextView
36             android:id="@+id/main_text"
37             android:text="@string/reader_view_text"
38             android:layout_width="wrap_content"
39             android:layout_height="wrap_content"
40             android:layout_marginStart="8dp"
41             android:layout_marginEnd="8dp"
42             android:layout_toEndOf="@id/main_icon"
43             android:layout_toStartOf="@+id/main_close"
44             android:layout_centerVertical="true"
45             android:ellipsize="end"
46             android:singleLine="true"
47             android:fontFamily="sans-serif"
48             android:textColor="#333333"
49             android:textSize="@dimen/reader_mode_text_size"
50             />
51         <ImageView
52             android:id="@+id/main_close"
53             android:src="@drawable/btn_close"
54             android:background="?attr/selectableItemBackground"
55             android:layout_width="wrap_content"
56             android:layout_height="wrap_content"
57             android:layout_marginEnd="16dp"
58             android:layout_alignParentEnd="true"
59             android:layout_centerVertical="true"
60             android:contentDescription="@string/close"
61             />
62     </RelativeLayout>
63 </org.chromium.chrome.browser.dom_distiller.ReaderModeButtonView>