TextView超过指定字符长度显示省略号的属性,就是想如果字符串过长还是单行显示,统一字符串最大长度使得列表整体看起来比较好看
android:maxEms="15" //是指15个中文字符的长度,如果是英文,那就显示30个
android:ellipsize="end" //省略号显示在结尾
android:singleLine="true"//单行显示
<TextView
android:id="@+id/tv_realtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxEms="15"
android:ellipsize="end"
android:singleLine="true"
android:textColor="@android:color/holo_blue_dark"
android:textSize="16sp" />