summaryrefslogtreecommitdiff
path: root/chromium/weblayer/browser/java/res/layout/weblayer_infobar_translate_compact_content.xml
blob: 82149b5b142470c3756f3f04be9d967f08bea003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017 The Chromium Authors. All rights reserved.
     Use of this source code is governed by a BSD-style license that can be
     found in the LICENSE file. -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/weblayer_translate_infobar_content"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center_vertical"
    android:orientation="horizontal">
    <!-- TODO(huayinz): Change app:tabIndicatorColor to some common color reference -->
    <org.chromium.weblayer_private.TranslateTabLayout
        android:id="@+id/weblayer_translate_infobar_tabs"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:requiresFadingEdge="horizontal"
        android:fadingEdgeLength="@dimen/weblayer_infobar_translate_fade_edge_length"
        app:tabIndicator="@drawable/weblayer_tab_indicator"
        app:tabIndicatorFullWidth="false"
        app:tabIndicatorHeight="3dp"
        app:tabSelectedTextColor="@color/weblayer_tab_layout_selected_tab_color"
        app:tabGravity="fill"
        app:tabMode="scrollable" />

    <org.chromium.ui.widget.ChromeImageButton
        android:id="@+id/weblayer_translate_infobar_menu_button"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:minHeight="@dimen/min_touch_target_size"
        android:minWidth="@dimen/min_touch_target_size"
        android:scaleType="center"
        android:background="?attr/selectableItemBackground"
        android:contentDescription="@string/accessibility_toolbar_btn_menu"
        android:src="@drawable/ic_more_vert_24dp"
        app:tint="@color/default_icon_color_tint_list" />
</LinearLayout>