Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <?xml version="1.0" encoding="utf-8"?> | |
|
newt (away)
2015/11/05 05:52:15
If this is a "subcontrol" what is a "regular contr
gone
2015/11/05 20:42:03
Done.
| |
| 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 | |
| 4 found in the LICENSE file. --> | |
| 5 | |
| 6 <LinearLayout | |
| 7 xmlns:android="http://schemas.android.com/apk/res/android" | |
| 8 android:id="@+id/subcontrol_toggle" | |
| 9 android:layout_width="match_parent" | |
| 10 android:layout_height="36dp"> | |
| 11 | |
| 12 <ImageView | |
| 13 android:id="@+id/subcontrol_toggle_icon" | |
| 14 android:layout_width="wrap_content" | |
| 15 android:layout_height="match_parent" | |
| 16 android:layout_weight="0" | |
|
newt (away)
2015/11/05 05:52:15
weight="0" is the default. I'd just leave it out,
gone
2015/11/05 20:42:03
Done.
| |
| 17 android:layout_gravity="center_vertical|start" | |
|
newt (away)
2015/11/05 05:52:15
"start" isn't needed here, and "end" isn't needed
gone
2015/11/05 20:42:03
Done.
| |
| 18 android:layout_marginEnd="8dp" | |
| 19 android:visibility="gone" | |
| 20 android:scaleType="centerInside" | |
| 21 android:contentDescription="@null" /> | |
| 22 | |
| 23 <TextView | |
| 24 android:id="@+id/subcontrol_toggle_message" | |
| 25 android:layout_width="0dp" | |
| 26 android:layout_height="match_parent" | |
| 27 android:layout_weight="1" | |
| 28 android:layout_gravity="center_vertical" | |
|
newt (away)
2015/11/05 05:52:15
Instead of adding layout_gravity="center_vertical"
gone
2015/11/05 20:42:03
Done.
| |
| 29 android:gravity="center_vertical" | |
| 30 android:lineSpacingExtra="@dimen/infobar_subcontrol_text_extra_spacing" | |
|
newt (away)
2015/11/05 05:52:16
I'd recommend lineSpacingMultiplier instead of lin
gone
2015/11/05 20:42:03
Going with 1.4 instead of 1.428, assuming dp=sp an
| |
| 31 android:textDirection="locale" | |
|
newt (away)
2015/11/05 05:52:16
Use textAlignment instead of textDirection. textDi
gone
2015/11/05 20:42:02
Took it out. Was copied over from the previous ve
| |
| 32 android:textSize="@dimen/infobar_subcontrol_text_size" | |
| 33 android:textColor="@color/default_text_color" /> | |
| 34 | |
| 35 <Switch | |
| 36 android:id="@+id/subcontrol_toggle_switch" | |
| 37 android:layout_width="wrap_content" | |
| 38 android:layout_height="match_parent" | |
| 39 android:layout_weight="0" | |
| 40 android:layout_gravity="center_vertical|end" | |
| 41 android:layout_marginStart="16dp" /> | |
| 42 | |
| 43 </LinearLayout> | |
| OLD | NEW |