本文整理匯總了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);
}