What is the view limit in Android xml layout
Strictly speaking the "limit" is 80.
Lint reports the following when you have too many views in a 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.
However, I was using a table layout which blew my number of views by a few (mainly TextViews) and I have had no problems. I didn't bother to change the ANDROID_LINT_MAX_VIEW_COUNT variable.
There are no certain things in android.You can use maximum views as much as you can.But one thing that needs to keep in mind, there should be maximum 3 level hierarchy.