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

Let the refresh button spin #38

Open
Makman2 opened this issue Jun 16, 2015 · 0 comments
Open

Let the refresh button spin #38

Makman2 opened this issue Jun 16, 2015 · 0 comments
Labels

Comments

@Makman2
Copy link
Owner

Makman2 commented Jun 16, 2015

The WiFi refresh menu action button shall spin until the refreshed view is shown.

This is a bit complicated since the SDK has problems with AppCompat and uses a dumb system regarding drawable rotations. Just complicated and not helpful at all.

So best way:

  • Write our own RotateDrawable, where you can just set the angle (and not some awkward "level" that ranges from 0 - 10000)
  • If possible embed it in XML
  • Use the new drawable as icon
  • Use an animator with linear interpolation that sets the angle
    • Maybe make a completely own Animator class that just needs the new RotateDrawable target. But some properties should be left open, like interpolation etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant