OSDN Git Service

Update fullscreen user switcher on the lock screen.
authorRakesh Iyer <rni@google.com>
Wed, 19 Apr 2017 18:28:26 +0000 (11:28 -0700)
committerRakesh Iyer <rni@google.com>
Fri, 21 Apr 2017 22:20:37 +0000 (15:20 -0700)
commit5b3278f6147311d67f857c4339fd67dc44b6ff25
tree4ede1d95fedc43523de4d364e5861e24cc8ef417
parentec41ae655fe5fc096da0556a8e86e99d0250ab0e
Update fullscreen user switcher on the lock screen.

The older implementation didn't scale well with an
increasing number of users, it just kept making the
user pods smaller and smaller. Replace the custom
GridView with a custom ViewPager with a paging
indicator.

Also remove all the text from the screen since we
don't need it anymore.

More changes to follow.

Bug: 36454400
Test: Created more users than can fit on one screen,
      booted up and switched between the users.
Change-Id: I6de323fbaa6bc4cefc2bdb73a4c68c4f092a08a6
packages/SystemUI/res/layout/car_fullscreen_user_pod.xml
packages/SystemUI/res/layout/car_fullscreen_user_pod_container.xml [new file with mode: 0644]
packages/SystemUI/res/layout/car_fullscreen_user_switcher.xml
packages/SystemUI/res/values/dimens_car.xml
packages/SystemUI/res/values/strings_car.xml
packages/SystemUI/src/com/android/systemui/statusbar/car/FullscreenUserSwitcher.java
packages/SystemUI/src/com/android/systemui/statusbar/car/PageIndicator.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/statusbar/car/UserGridView.java