FrameLayout + bg-image vs ImageView

Simple question:

for very simple graphics such as dividers, is it cheaper to use FrameLayout in terms of layout / rendering costs and set the image as a background instead of using ImageView? The intuition was that FrameLayout is the simplest of all views (in terms of features), and ImageView does things like scaling and cropping. On the other hand, FrameLayout is a ViewGroup and supports children, while ImageView does not (although in this case there are no child views).

Or talk a little about performance?

+4
source share

All Articles