I have a LinearLayout
inside ScrollView
, this is my outline's layout:
<ScrollView >
<Linear Layout>
<Linear Layout>
<EditText/></Linear Layout>
<Linear Layout>
<EditText/></Linear Layout>
<Linear Layout>
<EditText/></Linear Layout>
............................................
............................................
............................................
............................................
............................................
............................................ //and many Views Here
<Linear Layout>
<Button/></Linear Layout>
</Linear Layout>
</ScrollView>
When I Run my Application with empty content in EditText
or Spinner, The last LinearLayout
that contain Button
is displayed, But when I fill EditText
or add another content The last LinearLayout
that contain Button
it shouldn't scroll anywhere and obviously not disappear. I've following the answer in here and here with adding android:layout_weight="1"
and android:layout_height:"fill_parent"
in 'ScrollView` but It seems doesn't work, is there another solution for my problem? thank you.