OSDN Git Service
(root)
/
android-x86
/
packages-apps-Launcher3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a15fb0
)
Fixing blip in animation when creating folder
author
Adam Cohen
<adamcohen@google.com>
Fri, 12 Aug 2011 22:51:59 +0000
(15:51 -0700)
committer
Adam Cohen
<adamcohen@google.com>
Fri, 12 Aug 2011 22:51:59 +0000
(15:51 -0700)
Change-Id: Icbb37b4bdd453e1af452125cf42c23b3e90c9629
src/com/android/launcher2/FolderIcon.java
patch
|
blob
|
history
diff --git
a/src/com/android/launcher2/FolderIcon.java
b/src/com/android/launcher2/FolderIcon.java
index
6cd7847
..
10928c0
100644
(file)
--- a/
src/com/android/launcher2/FolderIcon.java
+++ b/
src/com/android/launcher2/FolderIcon.java
@@
-516,8
+516,8
@@
public class FolderIcon extends LinearLayout implements FolderListener {
final PreviewItemDrawingParams finalParams = computePreviewItemDrawingParams(0, null);
final float scale0 = 1.0f;
- final float transX0 =
0
;
- final float transY0 =
0
;
+ final float transX0 =
(mAvailableSpaceInPreview - d.getIntrinsicWidth()) / 2
;
+ final float transY0 =
(mAvailableSpaceInPreview - d.getIntrinsicHeight()) / 2
;
mAnimParams.drawable = d;
ValueAnimator va = ValueAnimator.ofFloat(0f, 1.0f);