title: How to align 2 views to the left and one to the right in linear layout?
body: <pre><code>&lt;LinearLayout 
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:orientation="horizontal" &gt;
  
   &lt;CheckBox
       android:id="@+id/checkBox2"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:text="Learning a lot" /&gt;
  
  &lt;TextView
      android:id="@+id/ctv2"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="  ?" /&gt;
  
                  &lt;SeekBar
      android:id="@+id/seekBar2"
      android:layout_width="100dp"    
      android:layout_height="wrap_content" 
      android:gravity="right"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Thats the code in xml.
  I want checkbox and textview next to each other left aligned and seekbar right aligned.I found topics similar to this but I wasn't able to found solution. hmmmmmmm ... Please help me ...</p>