yes..u can do it by giving the values to width and height of the
layout.
but this is always not advisable.
On Apr 13, 2:56 pm, javame_android su...@softwebsolutions.com wrote:
Hi,
I have a RelativeLayout defined in xml and I call the
setContentView(R.layout.relativeLAyout) for displaying in
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
relativeLayout.getLayoutParams().height=200
relativeLayout.requestLayout();
On Tue, Apr 13, 2010 at 8:22 AM, javame_android
su...@softwebsolutions.comwrote:
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,
Hi,
Thanks a lot.
It worked out.
But the inner views are not resized with this. Do we need to resize
each and every component. I mean RelativeLayout has TextViews or
Buttons as its child. Now, on button click event the view is resized
but then TextView and Buttons just disappears.
How can we
In the same way get each child set its height to whichever u want or set to
wrap_content if u prefer and call invalidate layout.
I would just set to wrap_content for the child so i can see whether its
getting resized as the first step
On Tue, Apr 13, 2010 at 9:17 AM, javame_android
apart from the fill_parent, wrap_content there some more to it like
layout_weight, widthSum etc...
layout_weight works similar to width height % in html.
On Apr 13, 5:56 am, javame_android su...@softwebsolutions.com wrote:
Hi,
I have a RelativeLayout defined in xml and I call the
6 matches
Mail list logo