diff options
author | Mario Bertschler <bmario@google.com> | 2017-10-18 10:31:36 -0700 |
---|---|---|
committer | Mario Bertschler <bmario@google.com> | 2017-11-14 10:28:54 -0800 |
commit | ac9408a5cd7744a8dbc66a61114665ab6e4051de (patch) | |
tree | edb48150310dde96c444ec64952fd9678d825a13 /res/layout/all_apps_tabs.xml | |
parent | f405f507b70c0bd54adcfd69cc2c7a2b245d10d6 (diff) | |
download | android_packages_apps_Trebuchet-ac9408a5cd7744a8dbc66a61114665ab6e4051de.tar.gz android_packages_apps_Trebuchet-ac9408a5cd7744a8dbc66a61114665ab6e4051de.tar.bz2 android_packages_apps_Trebuchet-ac9408a5cd7744a8dbc66a61114665ab6e4051de.zip |
Enable work profile tab in all apps.
This CL will bring two tabs to all apps: Personal and Work,
currently only if the user has a workfile set up and
behind a feature flag defaulting to disabled.
Bug: 68713881
Change-Id: Ib5a558281ef3593359db3ad593ee1d0cf279f547
Diffstat (limited to 'res/layout/all_apps_tabs.xml')
-rw-r--r-- | res/layout/all_apps_tabs.xml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/res/layout/all_apps_tabs.xml b/res/layout/all_apps_tabs.xml new file mode 100644 index 000000000..fa1d5914c --- /dev/null +++ b/res/layout/all_apps_tabs.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2017 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> +<com.android.launcher3.allapps.InterceptingViewPager + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/all_apps_tabs_view_pager" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_below="@id/search_container_all_apps" + android:layout_gravity="center_horizontal|top" + android:layout_marginTop="@dimen/all_apps_header_tab_height" + android:clipChildren="false" + android:clipToPadding="false" + android:descendantFocusability="afterDescendants" + android:paddingTop="30dp"> + + <include layout="@layout/all_apps_rv_layout" /> + + <include layout="@layout/all_apps_rv_layout" /> + +</com.android.launcher3.allapps.InterceptingViewPager>
\ No newline at end of file |