title: Force ViewGroup's children move to next line if they exceed the device width
body: <p>I want to have a view group which may has some views which are positioned horizontally next together. The problem with my code is, everything is fine but when children count is getting greater, all children positioned horizontally together and exceed the device width. I need to force them move to next line if they exceed the device width.</p>
  
  <p>This is my code:</p>
  
  <pre><code>&lt;LinearLayout
      android:id="@+id/linearLayout"
      android:layout_width="match_parent"
      android:layout_height="92dp"
      android:layout_marginTop="?attr/actionBarSize"
      android:background="@color/divider"
      android:padding="6dp"&gt;
  
      &lt;LinearLayout
          android:id="@+id/linear_layout_container"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:orientation="horizontal"&gt;&lt;/LinearLayout&gt;
  
      &lt;ImageButton
          android:id="@+id/image_button_add_item"
          android:layout_width="78dp"
          android:layout_height="match_parent"
          android:background="@color/secondary_text"
          android:contentDescription="@string/content_description_add_new_file"
          android:src="@drawable/ic_plus"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>Note:</strong> the <code>linear_layout_container</code> view group contains all views and all of them are children of <code>linearLayout</code> view group.</p>