ImageViewer.java 文件源码

java
阅读 41 收藏 0 点赞 0 评论 0

项目:imageviewer 作者:
/**
 * 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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号