title: Button in relative layout pushed off screen by TextView
body: <p>I have a relative layouts for some parts of my app, made up of a checkbox, a button, some text, and another button (please see first screenshot, ex: [5min] after screen off [except]). </p>
  
  <p>The problem is for other languages, the text to the left of the last button could be much longer, pushing the "except" button slightly or completely off screen. How else could I do this so that the button (along with the text) wrap around to the next line? Right now only the text does. Here is the code:</p>
  
  <pre><code>        &lt;RelativeLayout
          android:id="@+id/layout_after_time"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="10dp"&gt;
  
          &lt;Button
              android:id="@+id/button_set_time_turn_off"
              android:layout_width="wrap_content"
              android:layout_height="35sp"
              android:paddingTop="0dp"
              android:paddingBottom="0dp"
              style="?android:attr/buttonStyleSmall"
              android:layout_centerVertical="true"
              android:textSize="16sp"/&gt;
  
          &lt;TextView
              android:id="@+id/textView_data_check_minutes"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="3dp"
              android:layout_marginStart="3dp"
              android:layout_toRightOf="@+id/button_set_time_turn_off"
              android:layout_toEndOf="@+id/button_set_time_turn_off"
              android:layout_centerVertical="true"
              android:textSize="16sp"
              android:textColor="@android:color/primary_text_dark"
              android:text="@string/text_disable_after_time" /&gt;
  
          &lt;Button
              android:id="@+id/button_set_disable_exceptions"
              android:layout_width="wrap_content"
              android:layout_height="35sp"
              android:paddingTop="0dp"
              android:paddingBottom="0dp"
              android:layout_toRightOf="@+id/textView_data_check_minutes"
              android:layout_toEndOf="@+id/textView_data_check_minutes"
              style="?android:attr/buttonStyleSmall"
              android:layout_centerVertical="true"
              android:text="@string/button_disable_except"
              android:textSize="16sp"/&gt;
  
      &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Normal layout:</p>
  
  <p><img src="https://i.stack.imgur.com/KXpdv.png" alt="Normal layout">   </p>
  
  <p>"except" button pushed off screen:</p>
  
  <p><img src="https://i.stack.imgur.com/l7MeD.png" alt="&quot;except&quot; button pushed off screen"></p>