XSLT存档  

不及格的程序员-八神

 查看分类:  ASP.NET XML/XSLT JavaScripT   我的MSN空间Blog
final SimpleAdapter simpleAdapter = new SimpleAdapter(
                this,
                listItems,
                R.layout.items_layout_choose_owner,
                new String[]{ "checked"},
                new int[] {R.id.chkItem}
        )
        {
            @Override
            public View getView(final int position, View convertView, ViewGroup parent)
            {
//super.getView();不要用这个方法,内部会调用
bindView,内部会更新 Checkable 控件状态

LayoutInflater layoutInflater
= ((LayoutInflater) parent.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE)); View viewResult; if (convertView == null) { viewResult = layoutInflater.inflate(R.layout.items_layout_choose_owner , parent, false); } else { viewResult = convertView; }
                //setOnCheckedChangeListener

 

posted on 2022-05-14 10:04  不及格的程序员-八神  阅读(22)  评论(0编辑  收藏  举报