1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2021 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15--> 16 17<com.android.launcher3.workprofile.PersonalWorkSlidingTabStrip 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:launcher="http://schemas.android.com/apk/res-auto" 20 android:id="@+id/tabs" 21 android:layout_width="match_parent" 22 android:layout_height="@dimen/all_apps_header_pill_height" 23 android:layout_gravity="center_horizontal" 24 android:paddingTop="@dimen/all_apps_tabs_vertical_padding" 25 android:paddingBottom="@dimen/all_apps_tabs_vertical_padding" 26 android:layout_marginTop="@dimen/all_apps_tabs_margin_top" 27 android:orientation="horizontal" 28 style="@style/TextHeadline" 29 launcher:alignOnIcon="true"> 30 31 <Button 32 android:id="@+id/tab_personal" 33 android:layout_width="0dp" 34 android:layout_height="match_parent" 35 android:layout_marginEnd="@dimen/all_apps_tabs_button_horizontal_padding" 36 android:layout_weight="1" 37 android:background="@drawable/all_apps_tabs_background" 38 android:text="@string/all_apps_personal_tab" 39 android:textColor="@color/all_apps_tab_text" 40 android:textSize="14sp" 41 style="?android:attr/borderlessButtonStyle" /> 42 43 <Button 44 android:id="@+id/tab_work" 45 android:layout_width="0dp" 46 android:layout_height="match_parent" 47 android:layout_marginStart="@dimen/all_apps_tabs_button_horizontal_padding" 48 android:layout_weight="1" 49 android:background="@drawable/all_apps_tabs_background" 50 android:text="@string/all_apps_work_tab" 51 android:textColor="@color/all_apps_tab_text" 52 android:textSize="14sp" 53 style="?android:attr/borderlessButtonStyle" /> 54</com.android.launcher3.workprofile.PersonalWorkSlidingTabStrip>