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

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

Issue 1411853007: Begin adding class for laying out InfoBar controls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 5 years, 1 month 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/values/dimens.xml » ('j') | chrome/android/java/res/values/ids.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/res/layout/infobar_control_toggle.xml
diff --git a/chrome/android/java/res/layout/infobar_control_toggle.xml b/chrome/android/java/res/layout/infobar_control_toggle.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e0c9c18c751a46e6c8cf3a5275680037b8eb1838
--- /dev/null
+++ b/chrome/android/java/res/layout/infobar_control_toggle.xml
@@ -0,0 +1,38 @@
+<?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:id="@+id/subcontrol_toggle"
+ android:layout_width="match_parent"
+ android:layout_height="36dp"
+ android:gravity="center_vertical">
+
+ <ImageView
+ android:id="@+id/control_toggle_icon"
+ android:layout_width="wrap_content"
newt (away) 2015/11/05 22:07:44 Don't you need layout_height?
gone 2015/11/05 22:21:38 ugh rebasing
+ android:layout_gravity="center_vertical"
+ android:layout_marginEnd="8dp"
+ android:scaleType="centerInside"
+ android:contentDescription="@null" />
+
+ <TextView
+ android:id="@+id/control_toggle_message"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:layout_gravity="center_vertical"
newt (away) 2015/11/05 22:07:44 remove this
gone 2015/11/05 22:21:38 Done.
+ android:gravity="center_vertical"
+ android:lineSpacingMultiplier="1.4"
+ android:textSize="@dimen/infobar_control_text_size"
+ android:textColor="@color/default_text_color" />
+
+ <Switch
+ android:id="@+id/control_toggle_switch"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_marginStart="16dp" />
+
+</LinearLayout>
« no previous file with comments | « no previous file | chrome/android/java/res/values/dimens.xml » ('j') | chrome/android/java/res/values/ids.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698