2012年3月13日
摘要: 第一步:得到当前Activity的LayoutInflater object. //下面俩种方法都可以 //LayoutInflaterinflater=getLayoutInflater();LayoutInflaterinflater=(LayoutInflater)this.getSystemService(LAYOUT_INFLATER_SERVICE);第二步:通过inflate方法得到ViewViewlayout=inflater.inflate(R.layout.custom_dialog,null);// R.layout.custom_dialog -> View的资源 阅读全文
posted @ 2012-03-13 17:54 lock 阅读(275) 评论(0) 推荐(0) 编辑