Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: chrome/android/java/res/layout/infobar_translate_tab_content.xml

Issue 2783523002: Create the customized TabLayout for the new translate UI (Closed)
Patch Set: modify according to comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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"
Marti Wong 2017/03/29 23:38:07 Seems I cannot get the item tabTextAppearance from
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698