本文整理汇总了Java中android.view.View.setOutlineProvider方法的典型用法代码示例。如果您正苦于以下问题:Java View.setOutlineProvider方法的具体用法?Java View.setOutlineProvider怎么用?Java View.setOutlineProvider使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.view.View
的用法示例。
在下文中一共展示了View.setOutlineProvider方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setOutlineProvider
import android.view.View; //导入方法依赖的package包/类
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());
}
});
}
示例2: setShadowOutlineProviderAt
import android.view.View; //导入方法依赖的package包/类
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);
}
}
示例3: setInsetsOutlineProvider
import android.view.View; //导入方法依赖的package包/类
static InsetsUpdater setInsetsOutlineProvider(final View view) {
final InsetsOutlineProvider provider = new InsetsOutlineProvider(view);
view.setOutlineProvider(provider);
return provider;
}
示例4: InsetsOutlineProvider
import android.view.View; //导入方法依赖的package包/类
public InsetsOutlineProvider(final View view) {
mView = view;
view.setOutlineProvider(this);
}
示例5: setBoundsViewOutlineProvider
import android.view.View; //导入方法依赖的package包/类
static void setBoundsViewOutlineProvider(View view) {
view.setOutlineProvider(ViewOutlineProvider.BOUNDS);
}
示例6: setClipToRoundedOutline
import android.view.View; //导入方法依赖的package包/类
public static void setClipToRoundedOutline(View view, boolean clip) {
view.setOutlineProvider(clip ? sOutlineProvider : ViewOutlineProvider.BACKGROUND);
view.setClipToOutline(clip);
}
示例7: setBoundsViewOutlineProvider
import android.view.View; //导入方法依赖的package包/类
static void setBoundsViewOutlineProvider(View view) {
view.setOutlineProvider(ViewOutlineProvider.BOUNDS);
}