StupidBeauty
Read times:818Posted at:Thu Nov 28 05:20:30 2013
- no title specified

转载:[Android UI界面] textview加下划线是什么属性啊?

TextView中是可以写HTML代码的,于是,下划线、倾斜、上标、下标这些经典的HTML4效果都可以用上。 textView.setText(Html.fromHtml("<u>"+"漂亮的笨蛋"+"</u>"));

http://www.eoeandroid.com/thread-7310-1-1.html

亮点:

如果是代码这样写.

  1. 1.TextView textView = (TextView)findViewById(R.id.testView);

  2. 2.textView.setText(Html.fromHtml("<u>"+"hahaha"+"</u>"));

  3. 3.

复制代码

Orlando Miranda

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands