I got two views which are equally distributed on my main layout.But my two views in tern have nested childs which are again equally spaced.I am using nested layout weight’s which is working fine. Whether nested weights effects the performance.What is the work around for this?
Share
Refer: http://developer.android.com/resources/articles/layout-tricks-efficiency.html
You can use a RelativeLayout in most cases to avoid such expensive measurements. In a RelativeLayout, views are aligned with their parent, with the RelativeLayout itself, or with other views.
To clearly understand how the views are positioned with respect to each other, a wireframe of the layout can be captured by using HierarchyViewer perspective of Android SDK.