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 android:id="@+id/tabs" 20 android:layout_width="match_parent" 21 android:layout_height="@dimen/all_apps_header_pill_height" 22 android:layout_gravity="center_horizontal" 23 android:orientation="horizontal" 24 style="@style/TextHeadline"> 25 26 <Button 27 android:id="@+id/tab_personal" 28 android:layout_width="0dp" 29 android:layout_height="match_parent" 30 android:layout_marginEnd="@dimen/all_apps_tabs_button_horizontal_padding" 31 android:layout_marginVertical="@dimen/all_apps_tabs_vertical_padding" 32 android:layout_weight="1" 33 android:background="@drawable/all_apps_tabs_background" 34 android:text="@string/all_apps_personal_tab" 35 android:textColor="@color/all_apps_tab_text" 36 android:textSize="14sp" 37 style="?android:attr/borderlessButtonStyle" /> 38 39 <Button 40 android:id="@+id/tab_work" 41 android:layout_width="0dp" 42 android:layout_height="match_parent" 43 android:layout_marginStart="@dimen/all_apps_tabs_button_horizontal_padding" 44 android:layout_marginVertical="@dimen/all_apps_tabs_vertical_padding" 45 android:layout_weight="1" 46 android:background="@drawable/all_apps_tabs_background" 47 android:text="@string/all_apps_work_tab" 48 android:textColor="@color/all_apps_tab_text" 49 android:textSize="14sp" 50 style="?android:attr/borderlessButtonStyle" /> 51</com.android.launcher3.workprofile.PersonalWorkSlidingTabStrip>