-
Notifications
You must be signed in to change notification settings - Fork 513
Using HtmlHttpImageGetter, BUT loading img URL pic too small. #131
Comments
Any update on this ?. I have the same problem |
anyone know to dealwith it? I have the same problem |
Just use this function enableCompressImage of HtmlHttpImageGetter or use this constructor HtmlHttpImageGetter(TextView textView, String baseUrl, boolean matchParentWidth). |
@rex3du The image gets cut by the parent's padding |
any update?
|
why don't use BitMap width and height? |
Have the same issue, the padding cut the image sides |
i am problame not slove. where set scale image ? images are too small |
@sami-soft @Mun0n @hezhipengzipp
i.e. set HtmlHttpImageGetter constructor parameter
|
改了一下用的Glide加载图片, 可以自定义图片匹配宽度, 或者自定义大小 大小单位为 dp `
package com.beijing.fragment.live; import android.graphics.Bitmap; public class HtmlHttpImageEmojiGetter implements ImageGetter { private final WeakReference containerReference; public HtmlHttpImageEmojiGetter(TextView textView) { public HtmlHttpImageEmojiGetter(TextView textView, int size) { public HtmlHttpImageEmojiGetter(TextView textView, boolean matchParentWidth) { public void enableCompressImage(boolean enable) { public void enableCompressImage(boolean enable, int quality) { public Drawable getDrawable(String source) {
} private float getScale(Bitmap bitmap) {
} private float getScale(Drawable drawable) {
} @SuppressWarnings("deprecation")
} ` |
When I rotate the screen, the picture gets bigger. |
Sorry,It's my code that's wrong. |
May be need Mini or Max size for UE.
Or
Add function to set BitmapDrawable scale
The text was updated successfully, but these errors were encountered: