开发者

Using ImageDrawables in a TextView vs ImageView+TextView

开发者 https://www.devze.com 2023-04-01 15:35 出处:网络
Is there an开发者_如何学JAVAy (even if infinitesimal) memory/speed advantage if I use a DrawableLeft property of a TextLabel to show a image beside text instead of using a two objects (ImageView and T

Is there an开发者_如何学JAVAy (even if infinitesimal) memory/speed advantage if I use a DrawableLeft property of a TextLabel to show a image beside text instead of using a two objects (ImageView and TextLabel) adjusted next to next in a layout.


DrawableLeft solution would use just one object or widget, while the other one takes probaly three, as it may need a container to envelop image and text object. I would go for the one object solution, if it does job properly, as it would be more efficient both memory and speed wise.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号