花費 7 ms
android中TextView中文字體粗體的方法

TextView在xml中可以定義android:textStyle="bold"來使字體顯示為粗體,但是這只對英文有效,當你的TextView要顯示中文的時候要在code中設置粗體的paint來實現,如下: 1 TextView title = new TextView ...

Mon Feb 06 23:25:00 CST 2012 2 2863

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM