首页 > 其他 > 详细

textview添加超链接

时间:2014-04-13 10:39:43      阅读:446      评论:0      收藏:0      [点我收藏+]

TextView

 

public final void setMovementMethod (MovementMethod movement)

 

Added in API level 1

Sets the movement method (arrow key handler) to be used for this TextView. This can be null to disallow using the arrow keys to move the cursor or scroll the view.

Be warned that if you want a TextView with a key listener or movement method not to be focusable, or if you want a TextView without a key listener or movement method to be focusable, you must call setFocusable(boolean) again after calling this to get the focusability back the way you want it.

使用:

textview.setMonvementMethod(new LinkMovementMethod());

 

见官网

http://developer.android.com/reference/android/widget/TextView.html#setMovementMethod(android.text.method.MovementMethod)

textview添加超链接,布布扣,bubuko.com

textview添加超链接

原文:http://blog.csdn.net/leehu1987/article/details/23540955

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!