I am new to Android.
I am stuck off in understanding the concept of using weight sum with weighted LinearLayout
s. Have skimmed through a number of related questions on StackOverflow but still haven't found the solution.
Scenario
I have an activity layout page with number of components . The components are oriented vertically in the linear layout according to their layout_weights.
Code
<ScrollView fillViewPort="true" scrollBars="true">
<LinearLayout android:weightSum="150">
<!-- Various components present here each assigned layout_weight attribute
Total sum being 150 itself -->
</LinearLayout>
</ScrollView>
Question
My question is that how can I use scroll View and weightSum together such that a total of weightSum=100
displays on one page and for the rest 50 user needs to scroll down.