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

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

Issue 1543913002: Add support for images with descriptions to infobars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 4 years, 11 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
« no previous file with comments | « no previous file | chrome/android/java/res/layout/infobar_control_toggle.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/res/layout/infobar_control_icon_with_description.xml
diff --git a/chrome/android/java/res/layout/infobar_control_icon_with_description.xml b/chrome/android/java/res/layout/infobar_control_icon_with_description.xml
new file mode 100644
index 0000000000000000000000000000000000000000..4f53d83957b181efc7bd55c97235936fe96ba753
--- /dev/null
+++ b/chrome/android/java/res/layout/infobar_control_icon_with_description.xml
@@ -0,0 +1,43 @@
+<?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. -->
+
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="36dp"
+ android:gravity="center_vertical">
+
+ <ImageView
+ android:id="@+id/control_icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="@dimen/infobar_control_margin_between_items"
+ android:scaleType="centerInside"
+ android:contentDescription="@null" />
+
+ <org.chromium.chrome.browser.infobar.InfoBarDualControlLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1" >
+
+ <TextView
+ android:id="@+id/control_message"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="@dimen/infobar_text_size"
+ android:textColor="@color/default_text_color" />
+
+ <TextView
+ android:id="@+id/control_secondary_message"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="@dimen/infobar_text_size"
+ android:textColor="@color/infobar_descriptive_text_color" />
+
+ </org.chromium.chrome.browser.infobar.InfoBarDualControlLayout>
+
+</LinearLayout>
« no previous file with comments | « no previous file | chrome/android/java/res/layout/infobar_control_toggle.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698