使用环境:
UI给一个.9图,或者自己找的一个.9图并且不会去拉长它。
使用方法:
ViewGroup.LayoutParams lp = orderdetialBinding.incompleteVoiceRemork.getLayoutParams(); lp.width = 200; lp.height = 120;
orderdatialBinding.incompleteVoiceRemork 仅仅代表这个.9图。
后边的高低,您随意。
本文介绍了一种在不拉伸.9图的情况下设置其尺寸的方法。通过修改ViewGroup.LayoutParams对象来调整图片的宽度和高度。
使用环境:
UI给一个.9图,或者自己找的一个.9图并且不会去拉长它。
使用方法:
ViewGroup.LayoutParams lp = orderdetialBinding.incompleteVoiceRemork.getLayoutParams(); lp.width = 200; lp.height = 120;
orderdatialBinding.incompleteVoiceRemork 仅仅代表这个.9图。
后边的高低,您随意。

被折叠的 条评论
为什么被折叠?