title: Android EditText Hint
body: <p>I have set a hint for an <code>EditText</code>, currently the hint visibility is gone. When a user starts typing, I want to remove the hint text, when the cursor is visible in the <code>EditText</code>, not at the time when a user starts to type. How can I do that?</p>
  
  <pre><code>&lt;EditText 
  android:paddingLeft="10dp"
  android:background="@drawable/edittextbg"
  android:layout_marginLeft="4dp"
  android:layout_marginTop="7dp"
  android:gravity="left"
  android:id="@+id/Photo_Comments" 
  android:layout_width="150dip" 
  android:maxLines="1"
  android:hint="Write Caption"
  android:maxLength="50"
  android:singleLine="true"
  android:maxWidth="100dip"
  android:layout_height="wrap_content"/&gt;
  </code></pre>