Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66b9fb16 authored by Adam Cohen's avatar Adam Cohen
Browse files

Iintial stab at multi-user switcher on Keyguard

Change-Id: I604a769ef43c354a8eeadb415e413c19ca02571d
parent fb3ec448
Loading
Loading
Loading
Loading
+40 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
**
** Copyright 2009, 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.
*/
-->

<!-- This is a view that shows general status information in Keyguard. -->
<com.android.internal.policy.impl.keyguard.KeyguardMultiUserAvatar
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="125dp"
    android:layout_height="125dp"
    android:background="#550000ff"
    android:gravity="center_horizontal">
    <ImageView
        android:id="@+id/keyguard_user_avatar"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center"/>
    <TextView
        android:id="@+id/keyguard_user_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|right"
        android:textSize="12sp"
        android:background="#99FFFFFF"
        android:textColor="#ff000000"/>
</com.android.internal.policy.impl.keyguard.KeyguardMultiUserAvatar>
 No newline at end of file
+41 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
**
** Copyright 2009, 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.internal.policy.impl.keyguard.KeyguardMultiUserSelectorView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="375dp"
    android:layout_height="wrap_content"
    android:layout_gravity="center">

    <include
        android:id="@+id/keyguard_active_user"
        android:layout_width="250dp"
        android:layout_height="250dp"
        layout="@layout/keyguard_multi_user_avatar"/>

    <ScrollView
        android:layout_width="125dp"
        android:layout_height="250dp">
        <LinearLayout
            android:id="@+id/keyguard_inactive_users"
            android:orientation="vertical"
            layout_width="match_parent"
            layout_height="wrap_content"/>
    </ScrollView>
</com.android.internal.policy.impl.keyguard.KeyguardMultiUserSelectorView>
 No newline at end of file
+28 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
**
** Copyright 2009, 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.
*/
-->

<!-- This is a view that shows general status information in Keyguard. -->
<com.android.internal.policy.impl.keyguard.KeyguardWidgetFrame
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <include layout="@layout/keyguard_multi_user_selector"/>

</com.android.internal.policy.impl.keyguard.KeyguardWidgetFrame>
 No newline at end of file
+1 −1
Original line number Original line Diff line number Diff line
@@ -32,7 +32,7 @@
        android:layout_height="0dip"
        android:layout_height="0dip"
        android:layout_weight="1"
        android:layout_weight="1"
        android:visibility="gone">
        android:visibility="gone">
            <!-- TODO: Remove this once supported as a widget -->
            <!-- TODO: Remove this when supported as a widget -->
            <include layout="@layout/keyguard_status_view"/>
            <include layout="@layout/keyguard_status_view"/>
    </com.android.internal.policy.impl.keyguard.KeyguardWidgetPager>
    </com.android.internal.policy.impl.keyguard.KeyguardWidgetPager>


+6 −0
Original line number Original line Diff line number Diff line
@@ -1139,6 +1139,8 @@
  <java-symbol type="layout" name="notification_template_part_time" />
  <java-symbol type="layout" name="notification_template_part_time" />
  <java-symbol type="layout" name="notification_template_part_chronometer" />
  <java-symbol type="layout" name="notification_template_part_chronometer" />
  <java-symbol type="layout" name="notification_template_inbox" />
  <java-symbol type="layout" name="notification_template_inbox" />
  <java-symbol type="layout" name="keyguard_multi_user_avatar" />
  <java-symbol type="layout" name="keyguard_multi_user_selector_widget" />


  <java-symbol type="anim" name="slide_in_child_bottom" />
  <java-symbol type="anim" name="slide_in_child_bottom" />
  <java-symbol type="anim" name="slide_in_right" />
  <java-symbol type="anim" name="slide_in_right" />
@@ -1338,6 +1340,10 @@
  <java-symbol type="id" name="sim_pin_entry" />
  <java-symbol type="id" name="sim_pin_entry" />
  <java-symbol type="id" name="puk_delete_button" />
  <java-symbol type="id" name="puk_delete_button" />
  <java-symbol type="id" name="pin_delete_button" />
  <java-symbol type="id" name="pin_delete_button" />
  <java-symbol type="id" name="keyguard_user_avatar" />
  <java-symbol type="id" name="keyguard_user_name" />
  <java-symbol type="id" name="keyguard_active_user" />
  <java-symbol type="id" name="keyguard_inactive_users" />
  <java-symbol type="integer" name="config_carDockRotation" />
  <java-symbol type="integer" name="config_carDockRotation" />
  <java-symbol type="integer" name="config_defaultUiModeType" />
  <java-symbol type="integer" name="config_defaultUiModeType" />
  <java-symbol type="integer" name="config_deskDockRotation" />
  <java-symbol type="integer" name="config_deskDockRotation" />
Loading