| <?xml version="1.0" encoding="utf-8"?> |
| |
| <!-- Copyright 2014 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. |
| --> |
| |
| <org.chromium.chrome.browser.accessibility_tab_switcher.AccessibilityTabModelWrapper |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical" |
| android:id="@+id/wrapper" |
| android:background="@color/tab_switcher_background" |
| android:divider="@drawable/accessibility_tab_switcher_divider" |
| android:showDividers="middle"> |
| |
| <org.chromium.chrome.browser.accessibility_tab_switcher.AccessibilityTabModelListView |
| android:id="@+id/list_view" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight="1" |
| android:contentDescription="@string/accessibility_tab_switcher_standard_stack" /> |
| |
| <!-- TabLayout doesn't support indicator at the top. Setting scaleY here as a workaround to |
| bring the indicator to the top. --> |
| <LinearLayout |
| android:id="@+id/tab_wrapper" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:visibility="gone" |
| android:scaleY="-1"> |
| |
| <com.google.android.material.tabs.TabLayout |
| android:id="@+id/tab_layout" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| app:tabMaxWidth="0dp" |
| app:tabGravity="fill" |
| app:tabMode="fixed" /> |
| |
| <Space |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/accessibility_tab_switcher_top_padding" /> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:id="@+id/button_wrapper" |
| android:visibility="gone"> |
| |
| <org.chromium.ui.widget.ChromeImageButton |
| android:id="@+id/standard_tabs_button" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:background="@drawable/btn_bg_holo_active" |
| android:src="@drawable/btn_normal_tabs" |
| app:tint="@color/default_icon_color_light_tint_list" |
| android:contentDescription="@string/accessibility_tab_switcher_standard_stack" |
| style="?android:attr/borderlessButtonStyle" /> |
| |
| <View |
| android:layout_width="1px" |
| android:layout_height="18dp" |
| android:layout_gravity="center_vertical" |
| android:background="#292929" /> |
| |
| <org.chromium.ui.widget.ChromeImageButton |
| android:id="@+id/incognito_tabs_button" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:src="@drawable/incognito_simple" |
| app:tint="@color/default_icon_color_light_tint_list" |
| android:background="@drawable/btn_bg_holo" |
| android:contentDescription="@string/accessibility_tab_switcher_incognito_stack" |
| style="?android:attr/borderlessButtonStyle" /> |
| </LinearLayout> |
| </org.chromium.chrome.browser.accessibility_tab_switcher.AccessibilityTabModelWrapper> |