check out android:maxLines="1"
and if you want to add ending ...
add also android:ellipsize="end"
<TextView
android:id="@+id/name"
android:text="i want this to crop not wrap"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end" />
android:singleLine="true"
was deprecated in API Level 3.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…