title: Android: Edittext with gravity center not working on device
body: <p>In Android I'm using a single line edittext with gravity set to center. In the Emulator this works great both the hint and a blinking cursor shows up. When testing on device (Xperia X10) neither the hint text nor the blinking cursor shows up. The blinking cursor only shows if I enter some text into the edittext.</p>
  
  <p>This is my edittext, can anyone see if something is missing?</p>
  
  <pre><code>&lt;LinearLayout 
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:gravity="center"
      android:layout_gravity="center"
  &gt;
  &lt;EditText 
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:inputType="numberDecimal" 
      android:ellipsize="end" 
      android:maxLines="1"
      android:gravity="center" 
      android:layout_gravity="center"
      android:hint="Some hint text"
  &gt;&lt;/EditText&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>What I want:</p>
  
  <p><img src="https://i.stack.imgur.com/Qu715.png" alt="This is what I want"></p>
  
  <p>What I get with the above code (empty edittext with no cursor):</p>
  
  <p><img src="https://i.stack.imgur.com/k7VNE.png" alt="The edittext doesn&#39;t show the hint text and have no blinking cursor"></p>