我正在对editText进行浮动提示,但要使其变得完美,我需要知道可绘制左侧使用的图像的大小如何,我想知道是否有可能从原始editText获取属性集。
正如写的
public void setCompoundDrawables(@Nullable Drawable left, @Nullable Drawable top,
@Nullable Drawable right, @Nullable Drawable bottom)
如果离开了,试试这个
int width = editText.getCompoundDrawables()[0].getMinimumWidth();
int height = editText.getCompoundDrawables()[0].getMinimumHeight();
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句