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..47a2b9273c93cf5a31bf9735042af2efd0367b17 |
--- /dev/null |
+++ b/chrome/android/java/res/layout/infobar_control_toggle.xml |
@@ -0,0 +1,37 @@ |
+<?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" |
+ android:layout_height="match_parent" |
+ 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: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> |