有关魅族手机遇到TextView显示异常

来源:互联网 发布:如何做淘宝联盟 编辑:程序博客网 时间:2024/06/04 18:34


TextView大概布局如下

     <TextView            android:layout_width="0dp"            android:layout_height="wrap_content"            android:layout_weight="2"            android:ellipsize="end"            android:maxLength="9"            android:maxLines="1"            android:text="测试500KG"            android:paddingLeft="20dp"            android:textColor="#494949"            android:singleLine="true"            android:textSize="@dimen/text_size_12dp"/>

如果没有SingLine属性,则显示的是上面那个效果,有则是下面这个效果。 Android系统好像是7.0的。


0 0
原创粉丝点击