365277a37a
Bug: 151831282 Bug: 142753423 Change-Id: I11dd21c3854b8b33fc44b2e49ca0e62c24da3310
51 lines
2.2 KiB
XML
51 lines
2.2 KiB
XML
<?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.views.WorkFooterContainer
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/work_toggle_container"
|
|
android:focusable="true"
|
|
android:orientation="horizontal"
|
|
android:background="?attr/allAppsScrimColor"
|
|
android:paddingBottom="@dimen/all_apps_work_profile_tab_footer_padding"
|
|
android:paddingLeft="@dimen/all_apps_work_profile_tab_footer_padding"
|
|
android:paddingRight="@dimen/all_apps_work_profile_tab_footer_padding"
|
|
android:paddingTop="@dimen/all_apps_work_profile_tab_footer_padding">
|
|
|
|
<TextView
|
|
style="@style/PrimaryMediumText"
|
|
android:id="@+id/work_mode_label"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:drawableStart="@drawable/ic_corp"
|
|
android:drawablePadding="16dp"
|
|
android:drawableTint="?attr/workProfileOverlayTextColor"
|
|
android:textColor="?attr/workProfileOverlayTextColor"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:gravity="center_vertical"
|
|
android:lines="1"
|
|
android:minHeight="24dp"
|
|
android:paddingEnd="12dp"
|
|
android:text="@string/work_profile_toggle_label"
|
|
android:textSize="16sp"/>
|
|
<com.android.launcher3.allapps.WorkModeSwitch
|
|
android:id="@+id/work_mode_toggle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
</com.android.launcher3.views.WorkFooterContainer> |