一些总结

Git 取消上传文件

  1. 放弃对文件的修改 git checkout

  2. 假定没有修改文件 git update-index –assume-unchanged sdk_version.properties

SQLite notice

index 从 1 开始

fresco多图加载,缩略图预览

1
2
3
4
5
6
7
8
9
10
ImageRequest request = ImageRequestBuilder
.newBuilderWithSource(Uri.fromFile(new File(fileName)))
.setLocalThumbnailPreviewsEnabled(true)
.setResizeOptions(new ResizeOptions(DensityUtil.dip2px(context,120), DensityUtil.dip2px(context,120)))
.build();
DraweeController controller = Fresco.newDraweeControllerBuilder()
.setImageRequest(request)
.setOldController(mSimpleDraweeView.getController())
.build();
mSimpleDraweeView.setController(controller);

重点在于缩放

1
setResizeOptions(new ResizeOptions(DensityUtil.dip2px(context,120), DensityUtil.dip2px(context,120)))