• android中的textview显示汉字不能自动换行的一个解决办法


    <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
     
        android:shrinkColumns="0"
        >
    
      
           <TableRow
               android:layout_width="match_parent"
               android:layout_height="wrap_content">
               <TextView
                   android:id="@+id/txtzi"
                   android:textSize="20sp"/>
           </TableRow>
      ...   
    
    
    </TableLayout>

    textview里面设置ellipsize属性和singline属性时要注意,不然会出现省略号的情况。(在table的格子中不能自动换行)

  • 相关阅读:
    ssh 远程命令
    POJ 2287
    POJ 2376
    hihoCoder1488
    POJ1854
    HDU 5510
    HDU 4352
    CodeForces 55D
    HDU 1517
    CodeForces 1200F
  • 原文地址:https://www.cnblogs.com/zhujiabin/p/4188009.html
Copyright © 2020-2023  润新知