Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with map #9

Closed
rombra169 opened this issue May 13, 2014 · 4 comments
Closed

Problem with map #9

rombra169 opened this issue May 13, 2014 · 4 comments

Comments

@rombra169
Copy link

Hi, thanks for your library.
I have a problem with your library and map.
I've put a map in a fragment, but when I open the menu, the map doesn't move and stay at his position. All the others views move with the main view.
Can you help me ?
Thanks

@SpecialCyCi
Copy link
Owner

Hi! Which map are you using? Google Map?

@rombra169
Copy link
Author

Thanks for your response
Yes, Android Google Map V2.
But I noticed that this bug was present only on Android version 2.x
On device with 4.x, I don't have this problem.

@SpecialCyCi
Copy link
Owner

I am so sorry to tell you that Google Map V2 MapView didn't support animation. But Google fixed this issue on API 16.

AndroidResideMenu use AndroidAnimation Library to scale down activity.

    /**
     * a helper method to build scale down animation;
     *
     * @param target
     * @param targetScaleX
     * @param targetScaleY
     * @return
     */
    private AnimatorSet buildScaleDownAnimation(View target,float targetScaleX,float targetScaleY){

        AnimatorSet scaleDown = new AnimatorSet();
        scaleDown.playTogether(
                ObjectAnimator.ofFloat(target, "scaleX", targetScaleX),
                ObjectAnimator.ofFloat(target, "scaleY", targetScaleY)
        );

        scaleDown.setInterpolator(AnimationUtils.loadInterpolator(activity,
                android.R.anim.decelerate_interpolator));
        scaleDown.setDuration(250);
        return scaleDown;
    }

You can see details in:

http://stackoverflow.com/questions/13694868/google-maps-android-api-v2-mapview-animation-failure

https://code.google.com/p/gmaps-api-issues/issues/detail?can=2&start=0&num=100&q=animation&colspec=ID%20Type%20Status%20Introduced%20Fixed%20Summary%20Stars%20ApiType%20Internal&groupby=&sort=&id=4782

@rombra169
Copy link
Author

It doesn't matter. Thank you very much for your replies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants