In this case you to use FrameLayout.LayoutParams. Note that having a FrameLayout as the parent of your content view is not guaranteed and could very well change across implementations and/or versions.
On Jan 10, 2009 5:49 PM, "hmmm" <akul...@mail.ru> wrote: I've tried but the same result. Now in DDMS log I have: java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams ----- Original Message ----- From: "Peli" <peli0...@googlemail.com> To: "Android Developers" <an... Sent: Sunday, January 11, 2009 3:39 AM Subject: [android-developers] Re: Change linear layout progra... There's this suspicious line: java.lang.ClassCastException: android.view.ViewGroup$LayoutParams Hav... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---