public static class ViewSkeletonScreen.Builder
extends java.lang.Object
| 构造器和说明 |
|---|
Builder(android.view.View view) |
| 限定符和类型 | 方法和说明 |
|---|---|
ViewSkeletonScreen.Builder |
angle(int shimmerAngle) |
ViewSkeletonScreen.Builder |
color(int shimmerColor) |
ViewSkeletonScreen.Builder |
duration(int shimmerDuration)
the duration of the animation , the time it will take for the highlight to move from one end of the layout
to the other.
|
ViewSkeletonScreen.Builder |
load(int skeletonLayoutResID) |
ViewSkeletonScreen.Builder |
shimmer(boolean shimmer) |
ViewSkeletonScreen |
show() |
public ViewSkeletonScreen.Builder load(@LayoutRes int skeletonLayoutResID)
skeletonLayoutResID - the loading skeleton layoutResIDpublic ViewSkeletonScreen.Builder color(@ColorRes int shimmerColor)
shimmerColor - the shimmer colorpublic ViewSkeletonScreen.Builder shimmer(boolean shimmer)
shimmer - whether show shimmer animationpublic ViewSkeletonScreen.Builder duration(int shimmerDuration)
shimmerDuration - Duration of the shimmer animation, in millisecondspublic ViewSkeletonScreen.Builder angle(int shimmerAngle)
shimmerAngle - the angle of the shimmer effect in clockwise direction in degrees.public ViewSkeletonScreen show()