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

Commit d67c5cb0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Multi-user bouncer tweaks"

parents 0c5ae34c db74c47f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -17,14 +17,14 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
            xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
            android:paddingMode="stack"
            android:paddingStart="44dp"
            android:paddingStart="24dp"
            android:paddingEnd="44dp"
            android:paddingLeft="0dp"
            android:paddingRight="0dp">
    <item>
        <shape android:shape="rectangle">
          <solid android:color="?androidprv:attr/colorSurface" />
            <corners android:radius="@dimen/keyguard_user_switcher_corner" />
            <corners android:radius="32dp" />
        </shape>
    </item>
    <item
+22 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2021 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.
-->

<shape android:shape="rectangle"
       xmlns:android="http://schemas.android.com/apk/res/android"
       xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
  <solid android:color="?androidprv:attr/colorAccentPrimary" />
  <corners android:radius="24dp" />
</shape>
+1 −1
Original line number Diff line number Diff line
@@ -18,5 +18,5 @@
       xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
       android:shape="rectangle">
    <solid android:color="?androidprv:attr/colorSurface" />
    <corners android:radius="@dimen/keyguard_user_switcher_popup_corner" />
    <corners android:radius="28dp" />
</shape>
+5 −6
Original line number Diff line number Diff line
@@ -30,8 +30,8 @@

    <ImageView
        android:id="@+id/user_icon"
        android:layout_width="@dimen/keyguard_user_switcher_icon_size"
        android:layout_height="@dimen/keyguard_user_switcher_icon_size" />
        android:layout_width="@dimen/bouncer_user_switcher_icon_size"
        android:layout_height="@dimen/bouncer_user_switcher_icon_size" />

    <!-- need to keep this outer view in order to have a correctly sized anchor
         for the dropdown menu, as well as dropdown background in the right place -->
@@ -40,13 +40,12 @@
        android:orientation="horizontal"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_marginTop="30dp"
        android:minHeight="48dp">
        android:layout_marginTop="30dp">
      <TextView
          style="@style/Keyguard.UserSwitcher.Spinner.Header"
          style="@style/Bouncer.UserSwitcher.Spinner.Header"
          android:clickable="false"
          android:id="@+id/user_switcher_header"
          android:layout_width="@dimen/keyguard_user_switcher_width"
          android:layout_width="@dimen/bouncer_user_switcher_width"
          android:layout_height="wrap_content" />
    </LinearLayout>>

+9 −8
Original line number Diff line number Diff line
@@ -13,13 +13,14 @@
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<TextView
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    style="@style/Keyguard.UserSwitcher.Spinner.Item"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
  <TextView
      style="@style/Bouncer.UserSwitcher.Spinner.Item"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
    android:layout_gravity="start"
    android:paddingStart="@dimen/control_menu_horizontal_padding"
    android:paddingEnd="@dimen/control_menu_horizontal_padding"
    android:textDirection="locale"/>
      android:layout_marginStart="12dp"
      android:layout_marginEnd="12dp" />
</FrameLayout>
Loading