Because I need to set the size of this view to a square inside the scrollview. I get the width at runtime and then set the height accordingly.
By the way I have found a workaround. To have the resize-and-relayout to happen in 4.0.3 if there is a dialog on top of the main window, it seems that these operations need to be posted to the view and not directly executed. On Thursday, April 26, 2012 5:02:37 PM UTC+2, MagouyaWare wrote: > > In my app main activity I have a View which starts with height 0, embedded >> in a FrameLayout > LinearLayout > ScrollView. I set the height >> programmatically with setLayoutParams() when I get the knowledge of its >> width. >> > Why are you doing this? > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > On Tue, Apr 24, 2012 at 1:55 PM, Gicci wrote: > >> In my app main activity I have a View which starts with height 0, >> embedded in a FrameLayout > LinearLayout > ScrollView. I set the height >> programmatically with setLayoutParams() when I get the knowledge of its >> width. > > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

