Interesting... If you look at the documentation for the fillViewport attribute it actually gives you the answer to your question... How about that!
https://developer.android.com/reference/android/widget/ScrollView.html#attr_android:fillViewport Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Aug 31, 2012 at 2:44 PM, Aleksandr Krasnoperov < akrasnope...@65gb.net> wrote: > > > понедельник, 19 сентября 2011 г., 13:29:44 UTC+4 пользователь Krishna > Prasad написал: > >> Hi all, >> >> >> I had a problem in my linear layout which is inside a scroll view .The >> background image is not showing in full screen. >> >> >> My sample code is >> >> ScrollView sv = new ScrollView(this); >> >> sv.**setLayoutParams(new >> LayoutParams(LayoutParams.**FILL_PARENT, >> >> ** LayoutParams.FILL_PARENT)); >> >> LinearLayout ll = new LinearLayout(this); >> >> ll.**setLayoutParams(new >> LayoutParams(LayoutParams.**FILL_PARENT, >> >> ** LayoutParams.FILL_PARENT)); >> ll.**setBackgroundResource(R.**drawable.bg_plain_background); >> >> >> ll.**setOrientation(LinearLayout.**VERTICAL); >> >> sv.addView(ll); >> setContentView(sv); >> >> >> >> >> >> >> Thanks. >> > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > sv.setFillViewport(true); > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > >> > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en