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 <org.chromium.chrome.browser.contextmenu.TabularContextMenuViewPager | 5 <FrameLayout |
6 xmlns:android="http://schemas.android.com/apk/res/android" | 6 xmlns:android="http://schemas.android.com/apk/res/android" |
7 xmlns:app="http://schemas.android.com/apk/res-auto" | 7 xmlns:app="http://schemas.android.com/apk/res-auto" |
8 android:id="@+id/custom_pager" | 8 android:id="@+id/context_menu_frame_layout" |
9 android:layout_width="wrap_content" | 9 android:background="@color/modal_dialog_scrim_color" > |
10 android:layout_height="wrap_content" | 10 <org.chromium.chrome.browser.contextmenu.TabularContextMenuViewPager |
11 android:layout_marginTop="20dp" | 11 android:id="@+id/custom_pager" |
12 android:layout_marginBottom="20dp" | 12 android:background="@drawable/white_with_rounded_corners" |
13 android:minWidth="280dp"> | |
14 <android.support.design.widget.TabLayout | |
15 android:id="@+id/tab_layout" | |
16 android:layout_width="match_parent" | 13 android:layout_width="match_parent" |
17 android:layout_height="wrap_content" | 14 android:layout_height="wrap_content" |
18 android:background="@color/google_grey_100" | 15 android:layout_marginTop="20dp" |
19 app:tabTextColor="#80000000" | 16 android:layout_marginBottom="20dp" |
20 app:tabSelectedTextColor="@color/light_active_color" | 17 android:minWidth="280dp" |
21 app:tabIndicatorColor="@color/light_active_color" | 18 android:layout_gravity="center"> |
22 app:tabGravity="fill" | 19 <!-- tabMaxWidth is required otherwise tabGravity will have no effect wh
en the context menu |
23 app:tabMode="fixed" /> | 20 gets too large. --> |
24 </org.chromium.chrome.browser.contextmenu.TabularContextMenuViewPager> | 21 <android.support.design.widget.TabLayout |
| 22 android:id="@+id/tab_layout" |
| 23 android:layout_width="wrap_content" |
| 24 android:layout_height="wrap_content" |
| 25 android:background="@color/google_grey_100" |
| 26 app:tabTextColor="@color/black_alpha_54" |
| 27 app:tabSelectedTextColor="@color/light_active_color" |
| 28 app:tabIndicatorColor="@color/light_active_color" |
| 29 app:tabGravity="fill" |
| 30 app:tabMode="fixed" |
| 31 app:tabMaxWidth="2000dp" /> |
| 32 </org.chromium.chrome.browser.contextmenu.TabularContextMenuViewPager> |
| 33 </FrameLayout> |
OLD | NEW |