/** * This method sets maximum width for resulting cropped image * * @param maxResultImageSizeX - size in pixels */ public void setMaxResultImageSizeX(@IntRange(from = 10) int maxResultImageSizeX) { mMaxResultImageSizeX = maxResultImageSizeX; }
/** * Setter for crop grid columns count. * Resets {@link #mGridPoints} variable because it is not valid anymore. */ public void setCropGridColumnCount(@IntRange(from = 0) int cropGridColumnCount) { mCropGridColumnCount = cropGridColumnCount; mGridPoints = null; }
/** * This method sets maximum width for resulting cropped image * * @param maxResultImageSizeY - size in pixels */ public void setMaxResultImageSizeY(@IntRange(from = 10) int maxResultImageSizeY) { mMaxResultImageSizeY = maxResultImageSizeY; }
/** * Setter for crop grid rows count. * Resets {@link #mGridPoints} variable because it is not valid anymore. */ public void setCropGridRowCount(@IntRange(from = 0) int cropGridRowCount) { mCropGridRowCount = cropGridRowCount; mGridPoints = null; }
/** * 设置顶部标题栏标题文字大小(单位为sp) */ public void setTitleTextSize(@IntRange(from = 10, to = 40) int titleTextSize) { this.titleTextSize = titleTextSize; }
/** * 线透明度 */ public DividerConfig setAlpha(@IntRange(from = 1, to = 255) int alpha) { this.alpha = alpha; return this; }
/** * 设置顶部标题栏高度(单位为dp) */ public void setTopHeight(@IntRange(from = 10, to = 80) int topHeight) { this.topHeight = topHeight; }
/** * 设置顶部标题栏取消按钮文字大小(单位为sp) */ public void setCancelTextSize(@IntRange(from = 10, to = 40) int cancelTextSize) { this.cancelTextSize = cancelTextSize; }
/** * 阴影透明度 */ public DividerConfig setShadowAlpha(@IntRange(from = 1, to = 255) int alpha) { this.shadowAlpha = alpha; return this; }
/** * 设置顶部标题栏确定按钮文字大小(单位为sp) */ public void setSubmitTextSize(@IntRange(from = 10, to = 40) int submitTextSize) { this.submitTextSize = submitTextSize; }
/** * 设置选项偏移量,可用来要设置显示的条目数,范围为1-5。 * 1显示3条、2显示5条、3显示7条…… */ public void setOffset(@IntRange(from = 1, to = 5) int offset) { this.offset = offset; }
public Builder setGearSwipeDegrees(@IntRange(from = 0, to = 360) int gearSwipeDegrees) { this.mGearSwipeDegrees = gearSwipeDegrees; return this; }
/** * Set the count of connection establish for this task, if this task has already split block * on the past and waiting for resuming, this set connection count will not effect really. * * @param connectionCount the count of connection establish for this task. */ public Builder setConnectionCount(@IntRange(from = 1) int connectionCount) { this.connectionCount = connectionCount; return this; }
/** * -1 or INFINITE will repeat forever */ public ViewAnimator repeatCount(@IntRange(from = -1) int repeatCount) { this.repeatCount = repeatCount; return this; }
/** * @param minimumVideoDurationInMilliseconds - minimum video duration in milliseconds, used only in video mode * for auto quality. * @return */ public Builder setMinimumVideoDuration(@IntRange(from = 1000, to = Integer.MAX_VALUE) int minimumVideoDurationInMilliseconds) { configuration.minimumVideoDuration = minimumVideoDurationInMilliseconds; return this; }
/** * @param videoDurationInMilliseconds - video duration in milliseconds * @return */ public Builder setVideoDuration(@IntRange(from = 1000, to = Integer.MAX_VALUE) int videoDurationInMilliseconds) { configuration.videoDuration = videoDurationInMilliseconds; return this; }
/** * @param videoSizeInBytes - file size in bytes * @return */ public Builder setVideoFileSize(@IntRange(from = 1048576, to = Long.MAX_VALUE) long videoSizeInBytes) { configuration.videoFileSize = videoSizeInBytes; return this; }
/** * @param shimmerAngle the angle of the shimmer effect in clockwise direction in degrees. */ public ViewSkeletonScreen.Builder angle(@IntRange(from = 0, to = 30) int shimmerAngle) { this.mShimmerAngle = shimmerAngle; return this; }
public ViewAnimator duration(@IntRange(from = 1) long duration) { this.duration = duration; return this; }
/** * @param shimmerAngle the angle of the shimmer effect in clockwise direction in degrees. */ public Builder angle(@IntRange(from = 0, to = 30) int shimmerAngle) { this.mShimmerAngle = shimmerAngle; return this; }