我在某些字段上使用 android:inputType="textEmailAddress|textEmailSubject" 以防止根据 Stackoverflow 上的帖子中的建议包装长行。但是我刚刚注意到,在我的 Nexus-S(但不是三星 Tab-2 7)上,一些文本带有红色下划线。
例如,“18 BR”的 BR 未划线。但是“NAS2”没有下划线。“TI”有下划线。如果我删除 android:inputType="textEmailAddress|textEmailSubject" 那么下划线会消失,但这些行可以用长用户名换行。
<!-- 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" />
解决此问题的最佳方法是什么。我在 Google 或 Stackoverflow 上找不到任何东西,也不知道解决它的最佳方法是什么。