relativeLayout.getLayoutParams().height=200 relativeLayout.requestLayout();
On Tue, Apr 13, 2010 at 8:22 AM, javame_android <[email protected]>wrote: > HI, > > I know it can be done by giving height and width in xml layout file. > But, I want it to be done by the Java Code. > > For example, I have a Layout file A.xml. In this, I have > RelativeLayout with layout_width = "fill_parent" and > layout_height="fill_parent". Now this layout should be resized to > specific width and height on some event such as button click. > > Can we do this? > > I think we can, but I am not getting how is this possible. Can someone > let me know the way of doing it? > > > > Thanks & Regards > Sunil > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > To unsubscribe, reply using "remove me" as the subject. > -- 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

