I am currently developing an application and just starting some testing for an ice cream sandwich and notice some strange behavior when using the android: ellipsize = "end" property in text form. he adds a character after the dots. This mistake leads me to nuts and appears only in a sandwich with ice cream. I saw a previous thread about this , but none of the fixes there helped. Any ideas, but a report for Android 4.0 maybe? My code is below incase, I kind of put an ice cream sandwich.
<LinearLayout android:id="@+id/mainTitleLayout" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="0.36" android:orientation="horizontal" android:weightSum="1" > <TextView android:id="@+id/mainTitle" android:layout_width="135dp" android:layout_height="wrap_content" android:layout_marginLeft="62dp" android:layout_marginTop="4dp" android:layout_weight="0.53" android:editable="false" android:ellipsize="end" android:gravity="center_vertical|center_horizontal" android:singleLine="true" android:textColor="#fff" android:textSize="26sp" android:textStyle="bold" android:width="125dp" > </TextView> </LinearLayout>
I set the text dynamically in code through
TextView title = (TextView) act.findViewById(R.id.mainTitle); title.setTypeface(Utils.font); title.setText(detailTitle);
source share