| OLD | NEW |
| 1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
| 2 <!-- Copyright 2017 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2017 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 <!-- TODO(googleo): Add correct style based on spec and contentDescription. --> | 6 <!-- TODO(googleo): Add correct style based on spec and contentDescription. --> |
| 7 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 7 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 8 xmlns:app="http://schemas.android.com/apk/res-auto" | 8 xmlns:app="http://schemas.android.com/apk/res-auto" |
| 9 android:id="@+id/translate_infobar_content" | 9 android:id="@+id/translate_infobar_content" |
| 10 android:layout_width="match_parent" | 10 android:layout_width="match_parent" |
| 11 android:layout_height="wrap_content" | 11 android:layout_height="wrap_content" |
| 12 android:gravity="center_vertical" | 12 android:gravity="center_vertical" |
| 13 android:orientation="horizontal"> | 13 android:orientation="horizontal"> |
| 14 | 14 |
| 15 <org.chromium.chrome.browser.infobar.translate.TranslateTabLayout | 15 <org.chromium.chrome.browser.infobar.translate.TranslateTabLayout |
| 16 android:id="@+id/translate_infobar_tabs" | 16 android:id="@+id/translate_infobar_tabs" |
| 17 android:layout_width="0dp" | 17 android:layout_width="0dp" |
| 18 android:layout_height="wrap_content" | 18 android:layout_height="wrap_content" |
| 19 android:layout_weight="1" | 19 android:layout_weight="1" |
| 20 android:requiresFadingEdge="horizontal" | 20 android:requiresFadingEdge="horizontal" |
| 21 android:fadingEdgeLength="@dimen/infobar_translate_fade_edge_length" | 21 android:fadingEdgeLength="@dimen/infobar_translate_fade_edge_length" |
| 22 app:tabIndicatorColor="@color/infobar_accent_blue" | 22 app:tabIndicatorColor="@color/infobar_accent_blue" |
| 23 app:tabSelectedTextColor="@color/infobar_accent_blue" |
| 23 app:tabGravity="fill" | 24 app:tabGravity="fill" |
| 24 app:tabMode="scrollable" /> | 25 app:tabMode="scrollable" /> |
| 25 | 26 |
| 26 <ImageButton | 27 <org.chromium.chrome.browser.widget.TintedImageButton |
| 27 android:id="@+id/translate_infobar_menu_button" | 28 android:id="@+id/translate_infobar_menu_button" |
| 28 android:layout_width="wrap_content" | 29 android:layout_width="wrap_content" |
| 29 android:layout_height="wrap_content" | 30 android:layout_height="wrap_content" |
| 30 android:minHeight="@dimen/min_touch_target_size" | 31 android:minHeight="@dimen/min_touch_target_size" |
| 31 android:minWidth="@dimen/min_touch_target_size" | 32 android:minWidth="@dimen/min_touch_target_size" |
| 32 android:scaleType="center" | 33 android:scaleType="center" |
| 33 android:background="?attr/selectableItemBackground" | 34 android:background="?attr/selectableItemBackground" |
| 34 android:contentDescription="@null" | 35 android:contentDescription="@null" |
| 35 android:src="@drawable/btn_menu" /> | 36 android:src="@drawable/btn_menu" |
| 37 app:tint="@color/dark_mode_tint" /> |
| 36 </LinearLayout> | 38 </LinearLayout> |
| OLD | NEW |