Skip to content

Let the refresh button spin #38

Description

@Makman2

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions