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

Create a Play-Store-like action #9

Open
pietrorampini opened this issue Oct 10, 2014 · 12 comments
Open

Create a Play-Store-like action #9

pietrorampini opened this issue Oct 10, 2014 · 12 comments
Assignees

Comments

@pietrorampini
Copy link

Can you create an action like the new one in Play Store (release 5.0)?
a

@jaredrummler
Copy link

@Rampo, I got it working with a few modifications. Check out this gist: https://gist.github.com/jaredrummler/3743e8eecce88a5bdd13

I just used getActionBar().setCustomView(mySlidingAction); and when the drawer was open I set the rotation to clockwise and when the drawer was closed I set the rotation to counter clockwise. When the drawer was opening I used setAnimationProgress(percentOpen) to get the effect the Google Play app has.

Hope that helps and also hope a better solution is integrated.

@pietrorampini
Copy link
Author

Can you publish the full example please?

@yoavst
Copy link

yoavst commented Oct 11, 2014

@jaredrummler I got it to work but the opposite, the arrow is in the opposite side.

@pietrorampini
Copy link
Author

@jaredrummler Can you post me a full gist? I'm having some trouble

@jonasborggren
Copy link

I'm also interesed in having some sample code for this feature.

@yoavst
Copy link

yoavst commented Oct 11, 2014

also @jaredrummler I found a bug on orientation change

@jaredrummler
Copy link

I am busy this weekend but I will try to get a full working sample project up by Monday.

@xyggun
Copy link

xyggun commented Oct 12, 2014

working weekend?

@pietrorampini
Copy link
Author

@jaredrummler Thank you!

@yoavst
Copy link

yoavst commented Oct 12, 2014

@Rampo @jonasborggren Here is my version with sample - https://gist.github.com/yoavst/67a787ddebd447709980
The sample is based on my activity, so it may not work because I probably removed something important. It doesn't tested (only the ActionView and DrawerActionView are tested).

@markushi markushi self-assigned this Oct 12, 2014
@markushi
Copy link
Owner

Looks interesting!
The library should definitely provide an easy way to achieve a Google Playstore like effect. I'll look into this!

@Alchete
Copy link

Alchete commented Oct 15, 2014

I was going to do this myself as well -- basically tie the animation position to the navigation drawer offset.

Are you still working toward that markushi?

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

7 participants