Using ImageDrawables in a TextView vs ImageView+TextView
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.
精彩评论