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

Unified Diff: chrome/android/java_staging/res/layout/dialog_with_titlebar.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/dialog_with_titlebar.xml
diff --git a/chrome/android/java_staging/res/layout/dialog_with_titlebar.xml b/chrome/android/java_staging/res/layout/dialog_with_titlebar.xml
new file mode 100644
index 0000000000000000000000000000000000000000..3a4dd68e1741f6d474ac017294d97572f71d144d
--- /dev/null
+++ b/chrome/android/java_staging/res/layout/dialog_with_titlebar.xml
@@ -0,0 +1,47 @@
+<?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. -->
+
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/toolbar_height_no_shadow"
+ android:background="@color/default_primary_color" >
+
+ <TextView
+ android:id="@+id/title"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:fontFamily="sans-serif-medium"
+ android:gravity="center_vertical"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
+ android:textColor="#333333"
+ android:textSize="20sp" />
+
+ <ImageButton
+ android:id="@+id/close_button"
+ style="@style/ToolbarButton"
+ android:layout_width="52dp"
+ android:layout_height="match_parent"
+ android:layout_gravity="top"
+ android:contentDescription="@string/close"
+ android:src="@drawable/btn_close" />
+ </LinearLayout>
+
+ <ImageView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="@dimen/toolbar_height_no_shadow"
+ android:contentDescription="@null"
+ android:scaleType="fitXY"
+ android:src="@drawable/toolbar_shadow" />
+
+ <!-- Dialog content will be inserted here from Java code -->
+
+</FrameLayout>

Powered by Google App Engine
This is Rietveld 408576698