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

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

Issue 1436743002: Integrate new Reader Mode panel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scene-layer-changes
Patch Set: findbugs and low-end devices Created 5 years, 1 month 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <!-- Reader Mode view. -->
7 <org.chromium.chrome.browser.widget.ReaderModeControl
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="#FFF"
14 android:gravity="center_vertical|start"
15 android:orientation="vertical"
16 >
17
18 <!-- Lint flags this as a false positive overlap. -->
19 <!--suppress RelativeOverlap -->
20 <RelativeLayout
21 android:layout_width="match_parent"
22 android:layout_height="56dp">
23 <ImageView
24 android:id="@+id/main_icon"
25 android:src="@drawable/infobar_mobile_friendly"
26 android:layout_width="wrap_content"
27 android:layout_height="wrap_content"
28 android:layout_marginStart="16dp"
29 android:layout_alignParentStart="true"
30 android:layout_centerVertical="true"
31 android:contentDescription="@null"
32 />
33 <TextView
34 android:id="@+id/main_text"
35 android:text="@string/reader_view_text"
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
38 android:layout_marginStart="8dp"
39 android:layout_marginEnd="8dp"
40 android:layout_toEndOf="@id/main_icon"
41 android:layout_toStartOf="@+id/main_close"
42 android:layout_centerVertical="true"
43 android:ellipsize="end"
44 android:singleLine="true"
45 android:fontFamily="sans-serif"
46 android:textColor="#333333"
47 android:textSize="@dimen/reader_mode_text_size"
48 />
49 <ImageView
50 android:id="@+id/main_close"
51 android:src="@drawable/btn_close"
52 android:layout_width="48dp"
53 android:layout_height="48dp"
54 android:scaleType="centerInside"
55 android:layout_marginEnd="16dp"
56 android:layout_alignParentEnd="true"
57 android:layout_centerVertical="true"
58 android:contentDescription="@string/close"
59 />
60 </RelativeLayout>
61 </org.chromium.chrome.browser.widget.ReaderModeControl>
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698