title: Remove focus from a EditText in Android
body: <p>I have two <code>EditText</code>s and one <code>CheckBox</code> and a <code>Button</code> in my layout in the above order. After entering the values to the <code>EditText</code>, the user has to accept terms and conditions by clicking the <code>Checkbox</code>. I need to remove focus from <code>EditText</code>s after the checkbox is clicked. Right now the focus is always on the second <code>EditText</code>. How can this be achieved? Please help.
  <strong>Layout</strong>:
      </p>
  
  <pre><code>  &lt;EditText
        android:id="@+id/pm_et_customer_id"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:ems="10"
        android:hint="@string/customer_id_hint"
        android:fontFamily="sans-serif-light"
        android:gravity="center"
        android:singleLine="true"
        android:layout_centerHorizontal="true"
        android:inputType="phone"
        android:textAppearance="?android:attr/textAppearanceMedium"/&gt;
  
    &lt;RelativeLayout
        android:id="@+id/pm_rl_mob_no_widget"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="6dp"
        android:layout_below="@id/pm_et_customer_id"
        android:gravity="center_horizontal"&gt;
  
      &lt;EditText
          android:id="@+id/pm_et_dial_code"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignBottom="@+id/pm_et_msisdn"
          android:layout_marginLeft="5dp"
          android:ems="3"
          android:fontFamily="sans-serif-thin"
          android:gravity="center"
          android:text="@string/plus_nine_one"
          android:textAppearance="?android:attr/textAppearanceMedium"
      /&gt;
  
      &lt;EditText
          android:id="@+id/pm_et_msisdn"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_toRightOf="@+id/pm_et_dial_code"
          android:ems="9"
          android:fontFamily="sans-serif-light"
          android:gravity="center_horizontal"
          android:hint="@string/msisdn_hint"
          android:inputType="phone"
          android:maxLength="14"/&gt;
    &lt;/RelativeLayout&gt;
  
    &lt;Button
        android:id="@+id/pm_bt_proceed"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/lay_t_c"
        android:layout_centerHorizontal="true"
        android:layout_marginLeft="20dp"
        android:layout_marginRight="20dp"
        android:layout_marginTop="8dp"
        android:fontFamily="sans-serif-light"
        android:text="@string/bt_label_proceed"/&gt;
  
    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/pm_rl_mob_no_widget"
        android:id="@+id/lay_t_c"
        android:layout_marginTop="10dp"
        android:gravity="center"
        android:orientation="horizontal"&gt;
      &lt;CheckBox
          android:id="@+id/pm_check_t_and_c"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:fontFamily="sans-serif-thin"
          android:textSize="14sp"
          android:text="@string/pm_label_accept"/&gt;
  
      &lt;TextView
          android:id="@+id/pm_tv_t_and_c"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center_vertical"
          android:layout_marginRight="4dp"
          android:layout_marginEnd="4dp"
          android:paddingLeft="4dp"
          android:paddingStart="4dp"
          android:fontFamily="sans-serif-light"
          android:text="@string/pm_label_t_and_c"
          android:textSize="14sp"/&gt;
    &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>