I\'m creating a number of edit texts next to each other programmatically using RelativeLayout. The default width of each edit text is wrap_content, but when the edit text reache
What you can try. Not sure, if it will work. what you can do is calculate the width of screen on onCreate and make a check if the view exceeds that, make a new relative below the last one. To be honest linear layout will be more easier to maintain using weight property.
Try FlowLayout in android and dynamiaclly inflate TextViews in it.
Rather than that you can use Linearlayout with fixed number of children in each row and if doing this the children must having same layout_weight.
But rather than going in such big disputes i will request you to simply replace RelativeLayout With FlowLayout in android