понедельник, 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