title: android: singleline = true not working for edittext
body: <p>I want to restrict the edittext entry to a single line but When I add the line <code>android:singleline = "true"</code>, the hint is disappears, and after entering 26 characters the cursor is coming down. </p>
  
  <p>Here's my XML code:</p>
  
  <pre><code>   &lt;EditText                      
              android:background="@drawable/edittxtborder"
              android:id="@+id/reglastname"
              android:singleLine="true"
              android:gravity="center"
              android:hint="@string/reglname"
              android:textSize="12dp" 
     /&gt;
  </code></pre>