Skip to content

Commit

Permalink
small tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
zfdang committed Jun 18, 2024
1 parent 1f1958a commit 1a45aaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,6 @@ dependencies {

// https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib-jdk8
// implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:latest.release'
implementation 'com.github.bumptech.glide:glide:4.12.0'
implementation 'com.github.bumptech.glide:glide:4.16.0'
}

Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public void inflateContentViewGroup(ViewGroup viewGroup, TextView contentView, f
// use grid view to replace original imageview
ImageView image = (ImageView) inflater.inflate(R.layout.post_item_image, viewGroup, false);
image.setScaleType(ImageView.ScaleType.CENTER_CROP);
image.setPadding(3, 3, 3, 3);
Glide.with(mListener).load(content.getUrl()).thumbnail(0.1f).into(image);
image.setPadding(5, 5, 5, 5);
Glide.with(mListener).load(content.getUrl()).into(image);
image.setTag(R.id.image_tag, content.getImgIndex());

// set onclicklistener
Expand Down

0 comments on commit 1a45aaa

Please sign in to comment.