Performance wise, what is typically better, using an image or a xml created shape as a drawable?
问题 For example, if each row in a list had a background that was a gradient, would it be better to use a image of a gradient or to define that gradient in a shape drawable in xml? Is there is significant performance difference between the two methods? 回答1: I just asked a similar question and it sounded like that using an image drawable is more efficient computationally than using a vector.(but i'm not expert so don't quote me on that) It really depends on what your trying to set out to achieve in