TextView

作者: 岛在深海处 | 来源:发表于2017-02-15 20:42 被阅读0次
1.复制功能

添加属性
android:textIsSelectable="true"

2.行间距

1、android:lineSpacingExtra
设置行间距,如”3dp”。
2、android:lineSpacingMultiplier
设置行间距的倍数,如”1.2″。

3. 代码中修改TextView的DrawableLeft图片
Drawable weather = getResources().getDrawable(R.drawable.sunday);           
weather.setBounds(0, 0, weather.getMinimumWidth(), weather.getMinimumWidth()); 
tv_choose_weather.setCompoundDrawables(weather, null, null, null);
4.区分大小写

android:textAllCaps="false"

相关文章

网友评论

      本文标题:TextView

      本文链接:https://www.haomeiwen.com/subject/bfciuttx.html