2 u012345683 u012345683 于 2014.09.26 16:13 提问

安卓acttivity里面添加listview,然后监听里面的view,为什么点击没反应呢

部分代码在这里
ListView lv = (ListView) findViewById(R.id.mylv);
lv.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
SimpleAdapter adapter = new SimpleAdapter(this,getData(),R.layout.vlist,
new String[]{"title","info","img"},
new int[]{R.id.title,R.id.info,R.id.img});
lv.setAdapter(adapter);

     Log.i(ACTIVITY_TAG, "在这里啊=============================");
        lv.setOnItemClickListener
        (new AdapterView.OnItemClickListener()
        {         public void onItemClick
          (AdapterView<?> arg0, View arg1, int arg2, long arg3)
          {
         edit.setText("我被点过");
          }         });
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!