Screenshot(work mode is on): https://hsv.googleplex.com/6279751685636096 Screenshot (work mode is off): https://hsv.googleplex.com/6279751685636096 TODO: It is just the UX bit, once the platform change is in, we should then consume the new API to 1. Turn on / off work mode 2. Get the organization name and set the textview accordingly. BUG=69905244 Change-Id: Id94ae57625d6b629dac89c1c28f8d65f395fff6c
72 lines
2.8 KiB
XML
72 lines
2.8 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.
|
|
-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="@dimen/all_apps_work_profile_tab_footer_bottom_padding"
|
|
android:paddingLeft="@dimen/dynamic_grid_cell_padding_x"
|
|
android:paddingRight="@dimen/dynamic_grid_cell_padding_x"
|
|
android:paddingTop="@dimen/all_apps_work_profile_tab_footer_top_padding">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<Switch
|
|
android:id="@+id/work_mode_toggle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:theme="@style/WorkModeSwitchTheme"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBaseline="@id/work_mode_toggle"
|
|
android:layout_alignParentLeft="true"
|
|
android:ellipsize="end"
|
|
android:fontFamily="roboto-regular"
|
|
android:lines="1"
|
|
android:text="@string/work_profile_toggle_label"
|
|
android:textColor="?android:attr/textColorTertiary"
|
|
android:textSize="16sp"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="8dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:src="@drawable/ic_corp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/managed_by_label"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:ellipsize="end"
|
|
android:lines="1"
|
|
android:paddingLeft="12dp"
|
|
android:textColor="?android:attr/textColorHint"
|
|
android:textSize="13sp"/>
|
|
</LinearLayout>
|
|
</LinearLayout> |