OLD | NEW |
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. --> | 4 found in the LICENSE file. --> |
5 | 5 |
6 <LinearLayout | 6 <LinearLayout |
7 xmlns:android="http://schemas.android.com/apk/res/android" | 7 xmlns:android="http://schemas.android.com/apk/res/android" |
8 android:layout_width="match_parent" | 8 android:layout_width="match_parent" |
9 android:layout_height="wrap_content" | 9 android:layout_height="wrap_content" |
10 android:minHeight="36dp" | 10 android:minHeight="36dp" |
11 android:gravity="center_vertical"> | 11 android:gravity="center_vertical"> |
12 | 12 |
13 <ImageView | 13 <ImageView |
14 android:id="@+id/control_toggle_icon" | 14 android:id="@+id/control_icon" |
15 android:layout_width="wrap_content" | 15 android:layout_width="wrap_content" |
16 android:layout_height="wrap_content" | 16 android:layout_height="wrap_content" |
17 android:layout_marginEnd="@dimen/infobar_control_margin_between_items" | 17 android:layout_marginEnd="@dimen/infobar_control_margin_between_items" |
18 android:scaleType="centerInside" | 18 android:scaleType="centerInside" |
19 android:contentDescription="@null" /> | 19 android:contentDescription="@null" /> |
20 | 20 |
21 <!-- TODO(dfalcantara): Line spacing multiplier is applied to all lines in J
B & KK, even if the | |
22 TextView has only one line. This throws off vertica
l alignment. Find | |
23 a solution that hopefully doesn't involve subclassin
g the TextView. | |
24 --> | |
25 <TextView | 21 <TextView |
26 android:id="@+id/control_toggle_message" | 22 android:id="@+id/control_message" |
27 android:layout_width="0dp" | 23 android:layout_width="0dp" |
28 android:layout_height="wrap_content" | 24 android:layout_height="wrap_content" |
29 android:layout_weight="1" | 25 android:layout_weight="1" |
30 android:layout_marginEnd="@dimen/infobar_control_margin_between_items" | 26 android:layout_marginEnd="@dimen/infobar_control_margin_between_items" |
31 android:gravity="center_vertical" | 27 android:gravity="center_vertical" |
32 android:textSize="@dimen/infobar_text_size" | 28 android:textSize="@dimen/infobar_text_size" |
33 android:textColor="@color/default_text_color" /> | 29 android:textColor="@color/default_text_color" /> |
34 | 30 |
35 <android.support.v7.widget.SwitchCompat | 31 <android.support.v7.widget.SwitchCompat |
36 android:id="@+id/control_toggle_switch" | 32 android:id="@+id/control_toggle_switch" |
37 android:layout_width="wrap_content" | 33 android:layout_width="wrap_content" |
38 android:layout_height="wrap_content" /> | 34 android:layout_height="wrap_content" /> |
39 | 35 |
40 </LinearLayout> | 36 </LinearLayout> |
OLD | NEW |