页面布局
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="1">
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent“
android:text="查看更多信息..."
android:autoLink="web"/>
</LinearLayout >
代码部分主要就是用OnClickListener事件来实现
/**
*点击显示更多文字信息方法
*/
private OnClickListener textLikeListener = new OnClickListener(){
public void onClick(){
Intent intent = new Intent();
Bundle bundle = new Bundle();
bunddle.putString("",XXX);//传值
intent.putExtras(bundle);
intent.setClass(XXX.this,XXX.class);//跳转Activity
startActivity(intent);
}
}
/**
*初始化事件方法
*/
private void addtLikeListener(){
likeView.setOnClickListener(textLikeListener );
}
线程调用addtLikeListener方法就可以了