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

Unified Diff: chrome/android/java_staging/res/layout/bookmark_thumbnail_widget_item.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/bookmark_thumbnail_widget_item.xml
diff --git a/chrome/android/java_staging/res/layout/bookmark_thumbnail_widget_item.xml b/chrome/android/java_staging/res/layout/bookmark_thumbnail_widget_item.xml
new file mode 100644
index 0000000000000000000000000000000000000000..5cb190156c5e7b1cd36e7323eaed5668d3c09e36
--- /dev/null
+++ b/chrome/android/java_staging/res/layout/bookmark_thumbnail_widget_item.xml
@@ -0,0 +1,55 @@
+<?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. -->
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/list_item"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+
+ <ImageView
+ android:id="@+id/thumb"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/widget_thumbnail_height"
+ android:background="@drawable/border_thumb_bookmarks_widget_holo"
+ android:cropToPadding="true"
+ android:scaleType="centerCrop"
+ android:src="@drawable/thumbnail_bookmarks_widget_no_bookmark_holo"
+ android:contentDescription="@null" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignBottom="@id/thumb"
+ android:layout_marginBottom="2dp"
+ android:layout_marginEnd="2dp"
+ android:layout_marginStart="2dp"
+ android:background="@drawable/overlay_url_bookmark_widget_holo" >
+
+ <ImageView
+ android:id="@+id/favicon"
+ android:layout_width="@dimen/widget_favicon_size"
+ android:layout_height="@dimen/widget_favicon_size"
+ android:layout_gravity="center_vertical"
+ android:layout_marginBottom="4dp"
+ android:layout_marginEnd="8dp"
+ android:layout_marginStart="4dp"
+ android:layout_marginTop="4dp"
+ android:scaleType="centerInside"
+ android:src="@drawable/globe_incognito_favicon"
+ android:contentDescription="@null" />
+
+ <TextView
+ android:id="@+id/label"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:ellipsize="end"
+ android:singleLine="true"
+ android:textColor="@android:color/black"
+ android:textSize="12sp"
+ android:typeface="sans" />
+ </LinearLayout>
+
+</RelativeLayout>

Powered by Google App Engine
This is Rietveld 408576698