| OLD | NEW |
| (Empty) | |
| 1 <?xml version="1.0" encoding="utf-8"?> |
| 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 |
| 4 found in the LICENSE file. --> |
| 5 |
| 6 <org.chromium.chrome.browser.infobar.translate.TranslateTabContent |
| 7 xmlns:android="http://schemas.android.com/apk/res/android" |
| 8 android:id="@+id/translate_tabcontent" |
| 9 android:layout_width="wrap_content" |
| 10 android:layout_height="wrap_content"> |
| 11 <!-- Add both the textView and progressBar to the tab, and only keep one of
them visible. |
| 12 This way the width of the Tab will always be fixed no matter which one
is visible. --> |
| 13 <TextView |
| 14 android:id="@+id/translate_infobar_tab_text" |
| 15 android:layout_width="wrap_content" |
| 16 android:layout_height="wrap_content" |
| 17 android:layout_gravity="center" |
| 18 android:textAppearance="@style/TextAppearance.Design.Tab" |
| 19 android:visibility="visible" /> |
| 20 <ProgressBar |
| 21 android:id="@+id/translate_infobar_tab_progressbar" |
| 22 android:layout_width="@dimen/infobar_small_icon_size" |
| 23 android:layout_height="@dimen/infobar_small_icon_size" |
| 24 android:layout_gravity="center" |
| 25 android:indeterminate="true" |
| 26 android:visibility="invisible" /> |
| 27 </org.chromium.chrome.browser.infobar.translate.TranslateTabContent> |
| OLD | NEW |