Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
Update BitmapAssetHandler.java
Browse files Browse the repository at this point in the history
Fix cropping of image
  • Loading branch information
silus03 committed May 13, 2017
1 parent ff11a48 commit 672f61c
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -191,7 +191,8 @@ public BitmapAsset createAsset(@NonNull JSONObject payload, @NonNull AssetManage
public View createView(@NonNull BitmapAsset asset, @NonNull Context context) {
ImageView imageView = new ImageView(context);
imageView.setImageBitmap(asset.getBitmap());
imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);

This comment has been minimized.

Copy link
@VihaanVerma89

VihaanVerma89 Jul 21, 2017

Remove this line to get proper images in in-app notifications.

imageView.setAdjustViewBounds(true);

return imageView;
}
Expand Down

2 comments on commit 672f61c

@sourabhanand77
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HELLO
1024 photo

@sourabhanand77
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

INSTALL APP
play-stone-network-networked-interactive-163064

Please sign in to comment.