Performance: ViewGroup with Children VS. custom drawing

I am developing an application with a lot of user views and am facing performance issues with the rather complex ones. The time required for measuring and drawing is high (> = 30 ms). To give more details: this is custom ViewGroup(extension RelativeLayout) with custom views (extension RelativeLayoutthough) as its children.

So, I figured out what could be a better / faster approach to fixing these performance issues: optimize child elements and layouts or switch to a fully customizable view (lines, rectangles, etc.)

Do any of you have any experience with this or that? Or have some even done some tests and are willing to share them?

+4
source share
1 answer

, , , ( ). , , , RelativeLayouts RelativeLayouts, , ( ), ( RelativeLayouts). , , , merge include .

RelativeLayout, SDK, , , , . , RelativeLayout, ViewGroup , , , , (, RelativeLayout , , , , , , ).

, .

?

, (, , ).

+2

All Articles