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

Unified Diff: chrome/android/java/res/layout/history_item_view.xml

Issue 2542203002: [Android History] Add Android history manager UI and bridge (Closed)
Patch Set: Rebase, drop changes to time.* Created 4 years 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/res/layout/history_item_view.xml
diff --git a/chrome/android/java/res/layout/history_item_view.xml b/chrome/android/java/res/layout/history_item_view.xml
new file mode 100644
index 0000000000000000000000000000000000000000..dc314a0b51a3e4855e076d1c6fada9daa74a085f
--- /dev/null
+++ b/chrome/android/java/res/layout/history_item_view.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 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. -->
+
+<!-- TODO(twellington): Polish this after spec is available. -->
+<org.chromium.chrome.browser.history.HistoryItemView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:chrome="http://schemas.android.com/apk/res-auto"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" >
+
+ <RelativeLayout
+ android:id="@+id/content"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="16dp"
+ android:layout_marginEnd="16dp"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp" >
+
+ <ImageView
+ android:id="@+id/icon_view"
+ android:layout_width="@dimen/default_favicon_size"
+ android:layout_height="@dimen/default_favicon_size"
+ android:layout_alignParentStart="true"
+ android:layout_centerVertical="true"
+ android:layout_marginEnd="16dp"
+ android:contentDescription="@null"
+ android:scaleType="center"
+ android:src="@drawable/default_favicon" />
+
+ <TextView
+ android:id="@+id/title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_toEndOf="@+id/icon_view"
+ android:layout_toStartOf="@+id/remove"
+ android:singleLine="true"
+ android:ellipsize="end"
+ android:textColor="@color/default_text_color"
+ android:textSize="16sp" />
+
+ <TextView
+ android:id="@+id/domain"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:layout_toEndOf="@+id/icon_view"
+ android:layout_toStartOf="@+id/remove"
+ android:layout_below="@+id/title"
+ android:singleLine="true"
+ android:ellipsize="end"
+ android:textColor="@color/google_grey_600"
+ android:textSize="14sp" />
+
+ <org.chromium.chrome.browser.widget.TintedImageButton
+ android:id="@+id/remove"
+ android:layout_width="@dimen/selectable_list_layout_end_icon"
+ android:layout_height="@dimen/selectable_list_layout_end_icon"
+ android:layout_centerVertical="true"
+ android:layout_alignParentEnd="true"
+ android:background="@null"
+ android:contentDescription="@string/remove"
+ android:paddingEnd="16dp"
+ android:paddingStart="16dp"
+ android:src="@drawable/btn_trash"
+ chrome:tint="@color/dark_mode_tint" />
+ </RelativeLayout>
+
+</org.chromium.chrome.browser.history.HistoryItemView>
« no previous file with comments | « chrome/android/java/res/layout/download_date_view.xml ('k') | chrome/android/java/res/layout/history_main.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698