Java Code Examples for android.view.View.setOutlineProvider()

The following are Jave code examples for showing how to use setOutlineProvider() of the android.view.View class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Musicoco   File: SeekBarCompatDontCrash.java   Source Code and License Vote up 5 votes
public static void setOutlineProvider(View marker, final MarkerDrawable markerDrawable) {
    marker.setOutlineProvider(new ViewOutlineProvider() {
        @Override
        public void getOutline(View view, Outline outline) {
            outline.setConvexPath(markerDrawable.getPath());
        }
    });
}
 
Example 2
Project: IdealMedia   File: SeekBarCompatDontCrash.java   Source Code and License Vote up 5 votes
public static void setOutlineProvider(View marker, final MarkerDrawable markerDrawable) {
    marker.setOutlineProvider(new ViewOutlineProvider() {
        @Override
        public void getOutline(View view, Outline outline) {
            outline.setConvexPath(markerDrawable.getPath());
        }
    });
}
 
Example 3
Project: SliderPreferenceEmbedded   File: SeekBarCompatDontCrash.java   Source Code and License Vote up 5 votes
public static void setOutlineProvider(View marker, final MarkerDrawable markerDrawable) {
    marker.setOutlineProvider(new ViewOutlineProvider() {
        @Override
        public void getOutline(View view, Outline outline) {
            outline.setConvexPath(markerDrawable.getPath());
        }
    });
}
 
Example 4
Project: MaterialShadows   File: ShadowGenerator.java   Source Code and License Vote up 5 votes
private void setShadowOutlineProviderAt(int childIndex) {
    Path shadowPath = getViewPathWithOffsetAt(childIndex);
    if (shadowPath == null) {
        //Path calculation is still in progress
        return;
    }
    final View child = viewGroup.getChildAt(childIndex);
    CustomViewOutlineProvider outlineProvider = new CustomViewOutlineProvider(shadowPath, shadowAlpha);
    child.setOutlineProvider(outlineProvider);

    if (shouldAnimateShadow) {
        animateOutlineAlpha(child, outlineProvider);
    }
}
 
Example 5
Project: simple-keyboard   File: ViewOutlineProviderCompatUtilsLXX.java   Source Code and License Vote up 4 votes
static InsetsUpdater setInsetsOutlineProvider(final View view) {
    final InsetsOutlineProvider provider = new InsetsOutlineProvider(view);
    view.setOutlineProvider(provider);
    return provider;
}
 
Example 6
Project: simple-keyboard   File: ViewOutlineProviderCompatUtilsLXX.java   Source Code and License Vote up 4 votes
public InsetsOutlineProvider(final View view) {
    mView = view;
    view.setOutlineProvider(this);
}
 
Example 7
Project: cwac-crossport   File: ViewUtilsLollipop.java   Source Code and License Vote up 4 votes
static void setBoundsViewOutlineProvider(View view) {
  view.setOutlineProvider(ViewOutlineProvider.BOUNDS);
}
 
Example 8
Project: aos-Video   File: RoundedRectHelperApi21.java   Source Code and License Vote up 4 votes
public static void setClipToRoundedOutline(View view, boolean clip) {
    view.setOutlineProvider(clip ? sOutlineProvider : ViewOutlineProvider.BACKGROUND);
    view.setClipToOutline(clip);
}
 
Example 9
Project: boohee_v5.6   File: ViewUtilsLollipop.java   Source Code and License Vote up 4 votes
static void setBoundsViewOutlineProvider(View view) {
    view.setOutlineProvider(ViewOutlineProvider.BOUNDS);
}
 
Example 10
Project: AOSP-Kayboard-7.1.2   File: ViewOutlineProviderCompatUtilsLXX.java   Source Code and License Vote up 4 votes
static InsetsUpdater setInsetsOutlineProvider(final View view) {
    final InsetsOutlineProvider provider = new InsetsOutlineProvider(view);
    view.setOutlineProvider(provider);
    return provider;
}
 
Example 11
Project: AOSP-Kayboard-7.1.2   File: ViewOutlineProviderCompatUtilsLXX.java   Source Code and License Vote up 4 votes
public InsetsOutlineProvider(final View view) {
    mView = view;
    view.setOutlineProvider(this);
}