Merge "Fix 5355659: Change chevron visuals, timing, and animated positioning" into ics-factoryrom

This commit is contained in:
Justin Ho
2011-09-22 15:13:13 -07:00
committed by Android (Google) Code Review
13 changed files with 6 additions and 2 deletions

View File

@ -71,7 +71,7 @@ public class MultiWaveView extends View {
// Tune-able parameters // Tune-able parameters
private static final int CHEVRON_INCREMENTAL_DELAY = 160; private static final int CHEVRON_INCREMENTAL_DELAY = 160;
private static final int CHEVRON_ANIMATION_DURATION = 650; private static final int CHEVRON_ANIMATION_DURATION = 850;
private static final int RETURN_TO_HOME_DELAY = 1200; private static final int RETURN_TO_HOME_DELAY = 1200;
private static final int RETURN_TO_HOME_DURATION = 300; private static final int RETURN_TO_HOME_DURATION = 300;
private static final int HIDE_ANIMATION_DELAY = 200; private static final int HIDE_ANIMATION_DELAY = 200;
@ -297,7 +297,7 @@ public class MultiWaveView extends View {
*/ */
private void startChevronAnimation() { private void startChevronAnimation() {
final float r = mHandleDrawable.getWidth() * 0.4f; final float r = mHandleDrawable.getWidth() * 0.4f;
final float chevronAnimationDistance = mOuterRadius * 0.8f; final float chevronAnimationDistance = mOuterRadius * 1.0f;
final float from[][] = { final float from[][] = {
{mWaveCenterX - r, mWaveCenterY}, // left {mWaveCenterX - r, mWaveCenterY}, // left
{mWaveCenterX + r, mWaveCenterY}, // right {mWaveCenterX + r, mWaveCenterY}, // right
@ -310,6 +310,8 @@ public class MultiWaveView extends View {
{mWaveCenterX, mWaveCenterY + chevronAnimationDistance} }; // bottom {mWaveCenterX, mWaveCenterY + chevronAnimationDistance} }; // bottom
mChevronAnimations.clear(); mChevronAnimations.clear();
final float startScale = 0.5f;
final float endScale = 2.0f;
for (int direction = 0; direction < 4; direction++) { for (int direction = 0; direction < 4; direction++) {
for (int count = 0; count < mFeedbackCount; count++) { for (int count = 0; count < mFeedbackCount; count++) {
int delay = count * CHEVRON_INCREMENTAL_DELAY; int delay = count * CHEVRON_INCREMENTAL_DELAY;
@ -323,6 +325,8 @@ public class MultiWaveView extends View {
"x", new float[] { from[direction][0], to[direction][0] }, "x", new float[] { from[direction][0], to[direction][0] },
"y", new float[] { from[direction][1], to[direction][1] }, "y", new float[] { from[direction][1], to[direction][1] },
"alpha", new float[] {1.0f, 0.0f}, "alpha", new float[] {1.0f, 0.0f},
"scaleX", new float[] {startScale, endScale},
"scaleY", new float[] {startScale, endScale},
"onUpdate", mUpdateListener)); "onUpdate", mUpdateListener));
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 688 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 665 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 665 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 698 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 538 B

After

Width:  |  Height:  |  Size: 740 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 533 B

After

Width:  |  Height:  |  Size: 754 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 534 B

After

Width:  |  Height:  |  Size: 752 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 536 B

After

Width:  |  Height:  |  Size: 748 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 B

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 840 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 844 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 845 B

After

Width:  |  Height:  |  Size: 1.3 KiB