com.facebook.drawee.drawable.AutoRotateDrawable Java Examples

The following examples show how to use com.facebook.drawee.drawable.AutoRotateDrawable. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReactImageView.java    From react-native-GPay with MIT License 4 votes vote down vote up
public void setLoadingIndicatorSource(@Nullable String name) {
  Drawable drawable = ResourceDrawableIdHelper.getInstance().getResourceDrawable(getContext(), name);
  mLoadingImageDrawable =
    drawable != null ? (Drawable) new AutoRotateDrawable(drawable, 1000) : null;
  mIsDirty = true;
}