I am using android:inputType=”textEmailAddress|textEmailSubject” on some fields to prevent long lines from wrapping per a suggestion on a post here on Stackoverflow. However I just noticed that on my Nexus-S (but not the Samsung Tab-2 7) some of the text is underlined in red.
For example “18 BR” has the BR undelined. But “NAS2” is not underlined. “TI” is underlined. If I remove the android:inputType=”textEmailAddress|textEmailSubject” then the underlines go away but the lines can wrap with long user names.
<!-- Readout Waypoint Name -->
<TextView
android:inputType="textEmailAddress|textEmailSubject"
android:id="@+id/textWaypoint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:text="--"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="@dimen/menu" />
What is the best way to solve this. I can find nothing in Google or on Stackoverflow and have no idea what the best way to solve it is.
Remove
android:inputTypeproperty and use below lines in your TextView to fix your problem