Skip to content

Commit

Permalink
fix bitmap blur
Browse files Browse the repository at this point in the history
  • Loading branch information
mainlxl committed Dec 2, 2021
1 parent 75ea2a5 commit e7ce405
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/imf/test/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ protected void onCreate(Bundle savedInstanceState) {
mCache = findViewById(R.id.cache_text);
ImageView image = findViewById(R.id.image);
final Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.mipmap.image);
image.setImageBitmap(bitmap);
final TextView downloadTextView = findViewById(R.id.download_text);
updateCacheDir();
TextView tv = findViewById(R.id.sample_text);
Expand All @@ -57,9 +56,9 @@ public void run() {
stringBuilder.append("源码引入: ").append(NativeSourceTest.stringFromJNI()).append('\n');
stringBuilder.append("aar引入: ").append(NativeLibTest.stringFromJNI()).append('\n');
stringBuilder.append("子工程引入: ").append(NativeTestLibrary.stringFromJNI()).append('\n');
image.setImageBitmap(BitmapBlur.blur(bitmap, 25));
stringBuilder.append("Maven引入: >背景图片变模糊<");
tv.setText(stringBuilder.toString());
image.setImageBitmap(BitmapBlur.blur(bitmap, 9));
updateCacheDir();
}
}, 100);
Expand Down

0 comments on commit e7ce405

Please sign in to comment.