title: Android layout spacing between elements
body: <p>I have the following xml layout:</p>
  <p><a href="https://i.stack.imgur.com/6L4DR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6L4DR.png" alt="enter image description here" /></a></p>
  <p>Result I have at the moment:</p>
  <p><a href="https://i.stack.imgur.com/yXHrh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yXHrh.png" alt="enter image description here" /></a></p>
  <p>Result I want to have:</p>
  <p><a href="https://i.stack.imgur.com/EO5yc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EO5yc.png" alt="enter image description here" /></a></p>
  <p>I have to make sure to put the currentTime and endTime on the left and instead the screenRotationButton on the right.</p>
  <p>With the FocusAwareSeekBar below, as seen in the image.</p>
  <p>How do you advise me to get around?</p>
  <p>Edit:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;LinearLayout
                  android:id=&quot;@+id/bottomControls&quot;
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_alignParentBottom=&quot;true&quot;
                  android:gravity=&quot;center&quot;
                  android:minHeight=&quot;40dp&quot;
                  android:orientation=&quot;horizontal&quot;
                  android:paddingLeft=&quot;@dimen/player_main_controls_padding&quot;
                  android:paddingRight=&quot;@dimen/player_main_controls_padding&quot;&gt;
  
                  &lt;TextView
                      android:id=&quot;@+id/playbackCurrentTime&quot;
                      android:layout_width=&quot;wrap_content&quot;
                      android:layout_height=&quot;match_parent&quot;
                      android:gravity=&quot;center&quot;
                      android:minHeight=&quot;30dp&quot;
                      android:text=&quot;-:--:--&quot;
                      android:textColor=&quot;@android:color/white&quot;
                      tools:ignore=&quot;HardcodedText&quot;
                      tools:text=&quot;1:06:29&quot; /&gt;
  
                  &lt;TextView
                      android:id=&quot;@+id/separated&quot;
                      android:layout_width=&quot;wrap_content&quot;
                      android:layout_height=&quot;match_parent&quot;
                      android:gravity=&quot;center&quot;
                      android:paddingLeft=&quot;4dp&quot;
                      android:paddingRight=&quot;4dp&quot;
                      android:minHeight=&quot;30dp&quot;
                      android:text=&quot;/&quot;
                      android:textColor=&quot;@android:color/white&quot;
                      tools:ignore=&quot;HardcodedText&quot;
                      tools:text=&quot;/&quot; /&gt;
  
                  &lt;TextView
                      android:id=&quot;@+id/playbackEndTime&quot;
                      android:layout_width=&quot;wrap_content&quot;
                      android:layout_height=&quot;match_parent&quot;
                      android:gravity=&quot;center&quot;
                      android:text=&quot;-:--:--&quot;
                      android:textColor=&quot;@android:color/white&quot;
                      tools:ignore=&quot;HardcodedText&quot;
                      tools:text=&quot;1:23:49&quot; /&gt;
  
                  &lt;org.schabi.newpipe.views.FocusAwareSeekBar
                      android:id=&quot;@+id/playbackSeekBar&quot;
                      style=&quot;@style/Widget.AppCompat.SeekBar&quot;
                      android:layout_width=&quot;0dp&quot;
                      android:layout_height=&quot;wrap_content&quot;
                      android:layout_gravity=&quot;center&quot;
                      android:layout_marginTop=&quot;2dp&quot;
                      android:layout_weight=&quot;1&quot;
                      tools:progress=&quot;25&quot;
                      tools:secondaryProgress=&quot;50&quot; /&gt;
  
                  &lt;TextView
                      android:id=&quot;@+id/playbackLiveSync&quot;
                      android:layout_width=&quot;wrap_content&quot;
                      android:layout_height=&quot;match_parent&quot;
                      android:background=&quot;?attr/selectableItemBackground&quot;
                      android:gravity=&quot;center&quot;
                      android:paddingLeft=&quot;4dp&quot;
                      android:paddingRight=&quot;4dp&quot;
                      android:text=&quot;@string/duration_live&quot;
                      android:textAllCaps=&quot;true&quot;
                      android:textColor=&quot;@android:color/white&quot;
                      android:visibility=&quot;gone&quot;
                      tools:ignore=&quot;HardcodedText,RtlHardcoded,RtlSymmetry&quot; /&gt;
  
                  &lt;androidx.appcompat.widget.AppCompatImageButton
                      android:id=&quot;@+id/screenRotationButton&quot;
                      android:layout_width=&quot;40dp&quot;
                      android:layout_height=&quot;40dp&quot;
                      android:layout_marginStart=&quot;4dp&quot;
                      android:background=&quot;?attr/selectableItemBackground&quot;
                      android:clickable=&quot;true&quot;
                      android:focusable=&quot;true&quot;
                      android:padding=&quot;@dimen/player_main_buttons_padding&quot;
                      android:scaleType=&quot;fitCenter&quot;
                      android:visibility=&quot;gone&quot;
                      app:srcCompat=&quot;@drawable/ic_fullscreen&quot;
                      app:tint=&quot;@color/white&quot;
                      tools:ignore=&quot;ContentDescription,RtlHardcoded&quot;
                      tools:visibility=&quot;visible&quot; /&gt;
              &lt;/LinearLayout&gt;
  </code></pre>