summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseArrayMap.java
diff options
context:
space:
mode:
authorAts Jenk <atsjenk@google.com>2021-12-14 14:10:20 -0800
committerAts Jenk <atsjenk@google.com>2021-12-16 10:30:30 -0800
commitf33f1daf62ef743c93ab49a020bf609a10895e19 (patch)
tree2e2ab90fc4bdf0571618c5775be903065f9d47a1 /core/java/android/util/SparseArrayMap.java
parent6bb081f40b1c9a856381783f13933d1ec5de06bc (diff)
Use ConstraintLayout for BadgedImageView
App icon badge size is based on the view size, as a ratio. Use ConstraintLayout to define the app icon size based on constraints. This way we do not have to recalculate the app icon size manually. If the BadgedImageView size changes, app icon will be resized automatically. App icon badge position is fixed to the right. If it needs to be shown on the left, due to bubble position, we update the location using translationX. Bug: 162857077 Test: verified visually that bubble with app icon looks the same Test: verified visually that when display size changes, app icon changes together with bubble size Test: ran WMShellUnitTests unit tests Change-Id: I63a6cadfc7847dd0c0d9dca6bb6efd11f5b9958e
Diffstat (limited to 'core/java/android/util/SparseArrayMap.java')
0 files changed, 0 insertions, 0 deletions