title: Android application crashes when double clicking on a EditText field
body: <p>I'm developing an android application using Action Bar template. Everything is OK, but when I double click to any EditText field, application gets a Runtime Error, and it crashes.
  When I just click once, nothing happens and everything is OK. 
  Here's the layout (fragment)</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@drawable/background"
      android:gravity="center"
      tools:ignore="UselessParent" &gt;
  
      &lt;RelativeLayout 
          android:id="@+id/addrun_layout_date"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"&gt;
          &lt;TextView
              android:id="@+id/textView1"
              android:layout_width="150dp"
              android:layout_height="40dp"
              android:background="#B0B0B0"
              android:gravity="center"
              android:text="@string/date"
              android:textSize="22sp" /&gt;
  
          &lt;EditText
              android:id="@+id/date"
              android:layout_width="120dp"
              android:layout_height="40dp"
              android:layout_alignParentTop="true"
              android:layout_toRightOf="@+id/textView1"
              android:background="#B0B0B0"
              android:ems="10"
              android:inputType="date"
              android:gravity="center"
              android:textSize="22sp" &gt;
          &lt;/EditText&gt;
      &lt;/RelativeLayout&gt;
      &lt;GridLayout
          android:id="@+id/gridLayout1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"
          android:layout_below="@id/addrun_layout_date"
          android:layout_marginTop="20dp"
          android:columnCount="2" &gt;
  
          &lt;TextView
              android:id="@+id/textView2"
              android:layout_width="150dp"
              android:layout_height="50dp"
              android:layout_marginBottom="10dp"
              android:background="#838383"
              android:gravity="center"
              android:text="@string/distance"
              android:textColor="#FFFFFF"
              android:textSize="24sp" /&gt;
  
          &lt;EditText
              android:id="@+id/distance"
              android:layout_width="100dp"
              android:layout_height="50dp"
              android:layout_marginLeft="20dp"
              android:gravity="center"
              android:background="#FFFFFF"
              android:inputType="numberDecimal"
              android:selectAllOnFocus="true"
              android:clickable="false"
              android:textSize="24sp" /&gt;
  
          &lt;TextView
              android:id="@+id/textView3"
              android:layout_width="150dp"
              android:layout_height="50dp"
              android:layout_marginBottom="10dp"
              android:background="#838383"
              android:gravity="center"
              android:text="@string/time"
              android:textColor="#FFFFFF"
              android:textSize="24sp" /&gt;
  
          &lt;EditText
              android:id="@+id/time"
              android:layout_width="100dp"
              android:layout_height="50dp"
              android:layout_marginLeft="20dp"
              android:gravity="center"
              android:background="#FFFFFF"
              android:inputType="numberDecimal"
              android:selectAllOnFocus="true"
              android:textSize="24sp" /&gt;
  
          &lt;TextView
              android:id="@+id/textView4"
              android:layout_width="150dp"
              android:layout_height="50dp"
               android:gravity="center"
              android:layout_marginBottom="30dp"
              android:background="#838383"
              android:text="@string/calories"
              android:textColor="#FFFFFF"
              android:textSize="22sp" /&gt;
  
          &lt;EditText
              android:id="@+id/caloris"
              android:layout_width="100dp"
              android:layout_height="50dp"
              android:layout_marginLeft="20dp"
              android:gravity="center"
              android:background="#FFFFFF"
              android:inputType="number"
              android:selectAllOnFocus="true"
              android:textSize="24sp" /&gt;
  
          &lt;Button
              android:id="@+id/addButton"
              android:layout_width="100dp"
              android:layout_height="35dp"
              android:layout_gravity="center"
              android:background="#A71926"
              android:text="@string/add"
              android:textColor="#FFFFFF" /&gt;
  
          &lt;Button
              android:id="@+id/clearButton"
              android:layout_width="100dp"
              android:layout_height="35dp"
              android:layout_gravity="center"
              android:background="#A71926"
              android:onClick="clear"
              android:text="@string/clear"
              android:textColor="#FFFFFF" /&gt;
      &lt;/GridLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I can touch the field, change its value, no problems, just when I double click on it, the application crashes leaving this error message on the log : </p>
  
  <pre><code>&gt; 12-14 05:41:51.496: E/AndroidRuntime(1681): FATAL EXCEPTION: main
  12-14 05:41:51.496: E/AndroidRuntime(1681): Process: prv.adt.ejree, PID: 1681
  12-14 05:41:51.496: E/AndroidRuntime(1681): android.view.InflateException: Binary XML file line #17: Error inflating class com.android.internal.view.menu.ActionMenuItemView
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.LayoutInflater.createView(LayoutInflater.java:620)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.LayoutInflater.inflate(LayoutInflater.java:469)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.view.menu.BaseMenuPresenter.createItemView(BaseMenuPresenter.java:157)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.view.menu.BaseMenuPresenter.getItemView(BaseMenuPresenter.java:176)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.view.menu.ActionMenuPresenter.getItemView(ActionMenuPresenter.java:163)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.view.menu.ActionMenuPresenter.flagActionItems(ActionMenuPresenter.java:438)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.view.menu.MenuBuilder.flagActionItems(MenuBuilder.java:1052)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.view.menu.BaseMenuPresenter.updateMenuView(BaseMenuPresenter.java:87)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.view.menu.ActionMenuPresenter.updateMenuView(ActionMenuPresenter.java:216)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.view.menu.BaseMenuPresenter.getMenuView(BaseMenuPresenter.java:72)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.view.menu.ActionMenuPresenter.getMenuView(ActionMenuPresenter.java:154)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.widget.ActionBarContextView.initForMode(ActionBarContextView.java:230)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.app.ActionBarImpl.startActionMode(ActionBarImpl.java:455)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.app.Activity.onWindowStartingActionMode(Activity.java:5005)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.policy.impl.PhoneWindow$DecorView.startActionMode(PhoneWindow.java:2375)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.policy.impl.PhoneWindow$DecorView.startActionModeForChild(PhoneWindow.java:2362)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:665)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:665)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:665)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:665)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:665)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:665)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.View.startActionMode(View.java:4536)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.widget.Editor.startSelectionActionMode(Editor.java:1551)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.widget.Editor$SelectionModifierCursorController.onTouchEvent(Editor.java:3656)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.widget.Editor.onTouchEvent(Editor.java:1036)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.widget.TextView.onTouchEvent(TextView.java:7691)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.View.dispatchTouchEvent(View.java:7706)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2216)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2068)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1515)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.app.Activity.dispatchTouchEvent(Activity.java:2458)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2016)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.View.dispatchPointerEvent(View.java:7886)
  12-14 05:41:51.496: E/AndroidRuntime(1681):     at android.view.ViewRootImpl$Vie
  </code></pre>
  
  <p>Any explanation?</p>