小编use*_*344的帖子

Android将图像缩放到屏幕密度

我有一个应用程序,嵌入式可绘制48x48像素,71,12像素/英寸我通过流加载相同的图像到网络服务器,然后加载该流

return new BitmapDrawable(getActivity().getResources(), new ByteArrayInputStream(imageThumbnail));
Run Code Online (Sandbox Code Playgroud)

显示的结果是:

截图

我怎样才能使BitmapDrawable与其他drawable一样扩展?

android image android-layout

14
推荐指数
2
解决办法
2万
查看次数

标签 统计

android ×1

android-layout ×1

image ×1