android - Bottom part not display in linear layout using scrollview -


I have a linear layout but scrolling data and screen size are not displayed at the bottom.

Stretching bottom part, when using ScrollView inside linarlight, while scrolling to a higher height of device height

If I have less If the data is then the vertical screen size then all the buttons below are visible properly. Public class testui liner layout (SV = new scrollview (reference); HSV = new horizontal ScrollView (reference); this.addView (topLinearHorizonal); hsv.addView (tableLayout); sv.addView (HSV); this.addView (sv); this.addView (fullbottomLinearHorizonal);}

Edited:

  Linear Line Full BottomManier Horizonal = New Linear Layout ( Context); fullbottomLinearHorizonal.setOrientation (full); fullbottomLinearHorizonal.addView (clearLinearHorizonal); fullbottomLinearHorizonal.addView (bottomLinearHorizonal); 

If you select You want to always show fullbottomLinearHorizonal below (visible) when you add a view to TestGUI :

  LinearLayout.LayoutParams svParams = New LinearLayout.LayoutParams (LayoutParam.MATCH_PARENT, 0, 1); This.addView (sv, svParams); LinearLayout.LayoutParams fullbottomParams = New linear layout. Layout prams (layout paramount. MATCH_PARENT, WRAP_CONTENT); This.addView (fullbottlelinehorizonal, fullbottom forms);   

Edit: The default orientation for the linear layout is horizontal also you should set it vertically on TestGUI :

  this.setOrientation (VERTICAL);   

If you want the fullbottomliner horizonal at the end of the scrolling material, then you have to add it inside the scrollview.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -