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

Unified Diff: chrome/android/java_staging/res/layout/recent_tabs_group_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/recent_tabs_group_item.xml
diff --git a/chrome/android/java_staging/res/layout/recent_tabs_group_item.xml b/chrome/android/java_staging/res/layout/recent_tabs_group_item.xml
new file mode 100644
index 0000000000000000000000000000000000000000..0a024afb1106a6ed12ee95dd37402132497264f6
--- /dev/null
+++ b/chrome/android/java_staging/res/layout/recent_tabs_group_item.xml
@@ -0,0 +1,62 @@
+<?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. -->
+
+<org.chromium.chrome.browser.ntp.RecentTabsGroupView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:background="?attr/selectableItemBackground"
+ android:minHeight="64dp"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp">
+
+ <org.chromium.chrome.browser.widget.TintedImageView
+ android:id="@+id/device_icon"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_alignParentStart="true"
+ android:layout_alignParentTop="true"
+ android:layout_marginStart="16dp"
+ android:layout_marginEnd="16dp"
+ android:contentDescription="@null" />
+
+ <TextView
+ android:id="@+id/device_label"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_toEndOf="@id/device_icon"
+ android:layout_toStartOf="@+id/expand_collapse_icon"
+ android:ellipsize="end"
+ android:gravity="center_vertical"
+ android:minHeight="24dp"
+ android:singleLine="true"
+ android:textAlignment="viewStart"
+ android:textColor="@color/ntp_list_header_text"
+ android:textSize="16sp" />
+
+ <TextView
+ android:id="@+id/time_label"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_below="@id/device_label"
+ android:layout_alignStart="@id/device_label"
+ android:layout_alignEnd="@id/device_label"
+ android:layout_marginTop="5dp"
+ android:ellipsize="end"
+ android:textAlignment="viewStart"
+ android:textColor="@color/ntp_list_header_subtext"
+ android:textSize="12sp" />
+
+ <ImageView
+ android:id="@+id/expand_collapse_icon"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_alignParentEnd="true"
+ android:layout_centerVertical="true"
+ android:layout_marginStart="8dp"
+ android:layout_marginEnd="16dp"
+ android:contentDescription="@null" />
+
+</org.chromium.chrome.browser.ntp.RecentTabsGroupView>

Powered by Google App Engine
This is Rietveld 408576698