I'm tyring use FrameLayout with Multiple children within it. I know by using android:layout_gravity
attribute I can add multiple children to a FrameLayout. But my unclear part is whether it is affecting to the performance side and Cost side of the app if I add more Children to the FrameLayout
roughly 80 is the limit.
you will get following lint when you have too many view in your layout
AndroidLintTooManyViews
Description
Layout has too many views Using too many views in a single layout is bad for performance. Consider using compound drawables or other tricks for reducing the number of views in this layout. The maximum view count defaults to 80 but can be configured with the environment variable ANDROID_LINT_MAX_VIEW_COUNT.
note that limitation my differ cross different devices as performance score for different devices vary.