com.facebook.drawee.view.GenericDraweeView Java Examples
The following examples show how to use
com.facebook.drawee.view.GenericDraweeView.
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: AdvancedDraweeTransition.java From YcShareElement with Apache License 2.0 | 5 votes |
@Override public void captureStartValues(TransitionValues transitionValues) { captureValues(transitionValues); if (transitionValues.view instanceof GenericDraweeView) { ShareElementInfo shareElementInfo = ShareElementInfo.getFromView(transitionValues.view); if (shareElementInfo != null && shareElementInfo.getViewStateSaver() instanceof FrescoViewStateSaver) { Bundle viewInfo = shareElementInfo.isEnter() ? shareElementInfo.getFromViewBundle() : shareElementInfo.getToViewBundle(); mFromScale = ((FrescoViewStateSaver) shareElementInfo.getViewStateSaver()).getScaleType(viewInfo); } } }
Example #2
Source File: AdvancedDraweeTransition.java From YcShareElement with Apache License 2.0 | 5 votes |
@Override public void captureEndValues(TransitionValues transitionValues) { captureValues(transitionValues); if (transitionValues.view instanceof GenericDraweeView) { ShareElementInfo shareElementInfo = ShareElementInfo.getFromView(transitionValues.view); if (shareElementInfo != null && shareElementInfo.getViewStateSaver() instanceof FrescoViewStateSaver) { Bundle viewInfo = shareElementInfo.isEnter() ? shareElementInfo.getToViewBundle() : shareElementInfo.getFromViewBundle(); mToScale = ((FrescoViewStateSaver) shareElementInfo.getViewStateSaver()).getScaleType(viewInfo); } } }
Example #3
Source File: AdvancedDraweeTransition.java From YcShareElement with Apache License 2.0 | 5 votes |
private void captureValues(TransitionValues transitionValues) { if (transitionValues.view instanceof GenericDraweeView) { transitionValues.values.put( PROPNAME_BOUNDS, new Rect(0, 0, transitionValues.view.getWidth(), transitionValues.view.getHeight())); } }
Example #4
Source File: AdvancedDraweeTransition.java From YcShareElement with Apache License 2.0 | 4 votes |
public AdvancedDraweeTransition() { addTarget(GenericDraweeView.class); }
Example #5
Source File: FrescoViewStateSaver.java From YcShareElement with Apache License 2.0 | 4 votes |
@Override protected void captureViewInfo(View view, Bundle bundle) { if (view instanceof GenericDraweeView) { bundle.putInt("scaleType", scaleTypeToInt(((GenericDraweeView) view).getHierarchy().getActualImageScaleType())); } }
Example #6
Source File: UETFresco.java From UETool with MIT License | 4 votes |
private GenericDraweeHierarchy getGenericDraweeHierarchy(DraweeView draweeView) { if (draweeView instanceof GenericDraweeView) { return ((GenericDraweeView) draweeView).getHierarchy(); } return null; }
Example #7
Source File: ToggleAnimationClickListener.java From fresco with MIT License | 4 votes |
public ToggleAnimationClickListener(GenericDraweeView draweeView) { mDraweeView = draweeView; }