Search code examples
androidandroid-layoutviewgroup

Layout, adding views into a viewgroup, and having them shown on lines so no scroll is needed


I have tried RelativeLayout and LinearLayout, havnt figured out on any of them.

I have a number of views(EditText) 5-10, some of them are enabled, some arn't. What i want is to have them all displayed. First should be placed topleft, then they should propagate to the right the first, and then on next line if filled up.

Is there any way to do this, without writing my entire Layout myself? :-)


Solution

  • While i have had some really nice responses from guys, it just didn't really answer my question. The best solution, besides from writing my own heavy math layout is this: Sherif's answer