ListView的每一行都有一个button,一个textview ,现在要点击button改变button和textview的文本值, public void onClick(View arg0) {
// TODO Auto-generated method stub Button bt = (Button) arg0;
// 取得当前按钮所在的位置
bt.setText("取消");
}});
现在可以更新button的值,却不知道怎么更新textview的值
// TODO Auto-generated method stub Button bt = (Button) arg0;
// 取得当前按钮所在的位置
bt.setText("取消");
}});
现在可以更新button的值,却不知道怎么更新textview的值
解决方案 »
- 急!!!!! 能用彩信发bitmap 吗
- camera不用预览界面如何拍照?
- 急:android 签名打包问题,在线求解
- Sorry!the application activity(process com.activity)has stopped unexpectedly.ple
- android
- 只开版,却没有内容!
- android2.2能将软件安装在SD卡中吗?
- android开发
- LinearLayout.LayoutParams的bottomMargin总为0
- android二维码扫描相机过时
- Android调用WebService(cxf),部分字符乱码
- android webview缓存的问题
这个里面设置button的监听,去改变textview的值,都可以通过findViewById去获取到控件