Skip to content Skip to sidebar Skip to footer

Problem Adding Textboxes Dynamiclly In A Relative Layout

I am having trouble dynamically adding a text box to my view. More specifically, the text-box-adder works, but the button I am trying to move below it does not. The original view i

Solution 1:

For those that care, I'm part of this development team and we got our problem solved.

Here is the problem concept.

LayoutParamsp=newLayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);

In our layout, we're using a relative layout, thus the line should be:

 RelativeLayout.LayoutParamsp=newRelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);

Assigning incompatible layout parameters causes problems.

Post a Comment for "Problem Adding Textboxes Dynamiclly In A Relative Layout"