/**
* Set {@code start}, {@code top}, {@code end} and {@code bottom} padding for zooming and scrolling area using dimension.
*
* @return This Builder object to allow for chaining of calls to set methods
*/
public Builder setContainerPadding(Context context,
@DimenRes int start, @DimenRes int top,
@DimenRes int end, @DimenRes int bottom) {
setContainerPaddingPx(
Math.round(context.getResources().getDimension(start)),
Math.round(context.getResources().getDimension(top)),
Math.round(context.getResources().getDimension(end)),
Math.round(context.getResources().getDimension(bottom))
);
return this;
}
ImageViewer.java 文件源码
java
阅读 41
收藏 0
点赞 0
评论 0
项目:imageviewer
作者:
评论列表
文章目录