OSDN Git Service

Make padding consistent between shortcuts and the app icon.
authorTony Wickham <twickham@google.com>
Tue, 2 Aug 2016 22:50:44 +0000 (15:50 -0700)
committerTony Wickham <twickham@google.com>
Fri, 5 Aug 2016 18:17:42 +0000 (11:17 -0700)
commit988e2b7a4dbf6de017b2471626d2d8e5774bf8ed
tree666ee0b53c1fffd182c6d4a62dad6a5bfd7da963
parent37aba27bbcc89417588a638d61099288553387df
Make padding consistent between shortcuts and the app icon.

This change makes the padding consistent regardless of where the app
is (e.g. folder vs workspace vs all apps) by ignoring the app's
padding and adding our own to the shortcuts container.

Also note that this padding is relative to the icon, excluding the
text beneath it. So we also hide the text when the container opens
downwards, and re-show it when the container closes.

Bug: 30604007
Change-Id: I6e51c4983a8b5d495833f86e483ebaa229ed2099
res/layout/deep_shortcuts_container.xml
src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java