10.Android组件-ListView





    

 初始化/设置点击事件

Businesses_2_Adapter bank_card_adapter = new Businesses_2_Adapter();
lv.setAdapter(bank_card_adapter);
lv.setOnItemClickListener(mbankcardListItemClickListener);

获取Adapter上的某个组件

holder.button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Log.e(TAG, "位置" + position);
                DataBean items = (DataBean) getItem(position);
                String apkLoadUrl = items.getApkLoadUrl();
                Button bt = (Button) view;
                bt.setText("安装中");
//                notifyDataSetChanged();
            }
        });

你可能感兴趣的:(移动端,android,webview,java)