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

Unified Diff: chrome/android/java_staging/res/layout/reader_mode_view.xml

Issue 1141283003: Upstream oodles of Chrome for Android code into Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final patch? Created 5 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_staging/res/layout/reader_mode_view.xml
diff --git a/chrome/android/java_staging/res/layout/reader_mode_view.xml b/chrome/android/java_staging/res/layout/reader_mode_view.xml
new file mode 100644
index 0000000000000000000000000000000000000000..3aa528899c41a42676a8577d906cb8ebb55f562a
--- /dev/null
+++ b/chrome/android/java_staging/res/layout/reader_mode_view.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2015 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. -->
+
+<!-- Reader Mode view. -->
+<org.chromium.chrome.browser.dom_distiller.ReaderModeButtonView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/reader_mode_view"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:background="@drawable/reader_mode_bar_background"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp"
+ android:gravity="center_vertical|start"
+ android:orientation="vertical"
+ >
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+ <ImageView
+ android:id="@+id/main_icon"
+ android:src="@drawable/reader_mode_icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="16dp"
+ android:layout_alignParentStart="true"
+ android:layout_centerVertical="true"
+ android:contentDescription="@null"
+ />
+ <TextView
+ android:id="@+id/main_text"
+ android:text="@string/reader_view_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="8dp"
+ android:layout_marginEnd="8dp"
+ android:layout_toEndOf="@id/main_icon"
+ android:layout_toStartOf="@+id/main_close"
+ android:layout_centerVertical="true"
+ android:ellipsize="end"
+ android:singleLine="true"
+ android:fontFamily="sans-serif"
+ android:textColor="#333333"
+ android:textSize="@dimen/reader_mode_text_size"
+ />
+ <ImageView
+ android:id="@+id/main_close"
+ android:src="@drawable/btn_close"
+ android:background="?attr/selectableItemBackground"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="16dp"
+ android:layout_alignParentEnd="true"
+ android:layout_centerVertical="true"
+ android:contentDescription="@null"
+ />
+ </RelativeLayout>
+</org.chromium.chrome.browser.dom_distiller.ReaderModeButtonView>

Powered by Google App Engine
This is Rietveld 408576698