android控件剖析——————textview(文本文件也有大用处)
来源:互联网 发布:linux运维开发工程师 编辑:程序博客网 时间:2024/06/05 16:17
引言:android中,可以说textview的用处是无处不在,很多读者都把他当作label来使用,岂不知他有很大的功能。
那具体有什么功能呢,我们今天来讲一讲。
1.动态添加textview
TextView tv_logTitle_button=new TextView(HomeItemTaskMarItemAct.this);tv_logTitle_button.setTextSize(11);tv_logTitle_button.setTextColor(R.color.textview_selector);tv_logTitle_button.setText("修改");LinearLayout ll_logContent= new LinearLayout(HomeItemTaskMarItemAct.this);ll_logContent.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT));ll_logContent.addView(tv_logTitle_button);
2.文字的雕刻效果
android:shadowColor="#000000"
android:shadowDx="0"
android:shadowDy="-2"
android:shadowRadius="0.1"
3 .熟知的跑马灯效果
- android:singleLine="true"
- android:focusable="true"
- android:ellipsize="marquee"
- android:marqueeRepeatLimit="marquee_forever"
4 .去掉文本顶部和底部的额外空白
android:includeFontPadding="false"
0 0
- android控件剖析——————textview(文本文件也有大用处)
- Android UI设计——TextView控件
- Android UI 设计——TextView 控件
- Android UI基础——TextView控件
- android控件——textView使用
- 网络流—用处
- 一步一步学android控件(之二) —— TextView
- Android基础知识之控件系列(1)——TextView及自定义动态TextView
- 基础控件——TextView
- Android开发——文本控件——Textview
- 《Android开发从零开始》——4.TextView控件学习
- Android应用开发——TextView控件属性列表
- Android应用开发——TextView控件属性列表
- Android应用开发——TextView控件属性列表
- 一步一步学android之基本控件——TextView组件
- Android应用开发——TextView控件属性列表
- 自定义android控件——TextView 并添…
- 自定义android控件——TextView 并添…
- 远程数据库连接不通问题解决步骤
- 关于校园网“MAC地址被改,请恢删除注册表对应项复到原始的网卡mac地址”解决方案
- 升级 Vim 7.4 On Ubuntu 13.10, 13.04, 12.04, Linux...
- MyEclipse中SVN的使用方法
- 正则表达式30分钟入门教程
- android控件剖析——————textview(文本文件也有大用处)
- JQuery中$.ajax()方法参数详解
- Linux 命令
- 【php基础】php数组常用操作函数
- 标准C++中的string类的用法总结
- 流年做戏,我不会再爱你
- 关于在jsp代码中获取controller中的数据
- 字符界面下浏览网页工具---lynx 使用
- Android手机通用电池校正方法