2

I know there is alot of well reported issues with EditText Hint not showing, but my issue is a little diferent, when i try to show an hint in and EditTExt center aligned (gravity="center") it aligns to the left with the first character "eatten" on at least an LG-E610 running Android 4.0.3 (15), it shows fine on my S4 running 4.4.2.

  <EditText
            android:id="@+id/username"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:inputType="text"
            android:ellipsize="end"
            android:gravity="center"
            android:hint="@string/prompt_username" />

Screenshot

Community
  • 1
  • 1
forcewill
  • 1,637
  • 2
  • 16
  • 31

1 Answers1

0

Actually i didn't end up finding a solution for this and just gave up on using gravity center on the EditTExt

forcewill
  • 1,637
  • 2
  • 16
  • 31