android.view.ViewOverlay Java Examples
The following examples show how to use
android.view.ViewOverlay.
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: ViewGroupOverlayUtils.java From Transitions-Everywhere with Apache License 2.0 | 5 votes |
@Override public void addCrossfadeOverlay(boolean useParentOverlay, @NonNull View view, int fadeBehavior, @NonNull BitmapDrawable startDrawable, @NonNull BitmapDrawable endDrawable) { ViewOverlay overlay = getViewOverlay(useParentOverlay, view); if (fadeBehavior == Crossfade.FADE_BEHAVIOR_REVEAL) { overlay.add(endDrawable); } overlay.add(startDrawable); }
Example #2
Source File: ViewGroupOverlayUtils.java From Transitions-Everywhere with Apache License 2.0 | 5 votes |
@Override public void removeCrossfadeOverlay(boolean useParentOverlay, @NonNull View view, int fadeBehavior, @NonNull BitmapDrawable startDrawable, @NonNull BitmapDrawable endDrawable) { ViewOverlay overlay = getViewOverlay(useParentOverlay, view); overlay.remove(startDrawable); if (fadeBehavior == Crossfade.FADE_BEHAVIOR_REVEAL) { overlay.remove(endDrawable); } }
Example #3
Source File: ViewGroupOverlayUtils.java From Transitions-Everywhere with Apache License 2.0 | 4 votes |
@NonNull private static ViewOverlay getViewOverlay(boolean useParentOverlay, @NonNull View view) { return useParentOverlay ? ((ViewGroup) view.getParent()).getOverlay() : view.getOverlay(); }