-
-
Save owinocliff/9ac4261873b425cec5970ccdfd86dfea to your computer and use it in GitHub Desktop.
load picture with Picasso with a rotating loading animation plcaeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Picasso.with( context ) | |
.load( your_path ) | |
.error( R.drawable.ic_error ) | |
.placeholder( R.drawable.progress_animation ) | |
.into( image_view ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android" | |
android:drawable="@drawable/progress_image" | |
android:pivotX="50%" | |
android:pivotY="50%"/> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment