当前位置:编程学习 > wap >>

求助:ListView中textview无法更新

ListView的每一行都有一个button,一个textview ,现在要点击button改变button和textview的文本值,     public void onClick(View arg0) {  
                    // TODO Auto-generated method stub   

                 Button bt = (Button) arg0;
                      // 取得当前按钮所在的位置   
bt.setText("取消"); 
 }});  
现在可以更新button的值,却不知道怎么更新textview的值 --------------------编程问答-------------------- 在adapter的getView方法public View getView(int position, View view, ViewGroup parent) {
这个里面设置button的监听,去改变textview的值,都可以通过findViewById去获取到控件 --------------------编程问答-------------------- 我也遇到过类似的问题,LZ可以看看http://blog.csdn.net/wangdong20/article/details/8971556
补充:移动开发 ,  Android
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,