本帖最后由 zj497087731 于 2010-06-22 15:04:30 编辑

解决方案 »

  1.   

    用Dialog对话框做!View dialview=CreateView.getView(context, R.layout.自定义布局文件);
    Dialog dial=new AlertDialog.Builder(context)
    .setView(dialview)
    .create();
    dial.show();
    用dialview对象获取自定义的组件!如:Button button=(Button)dialview.findViewById(R.id.buttonid);
      

  2.   

    我特别不明白,很多地方都用到了这个 context ,他到底是什么东西呢?
      

  3.   

    还有啊, 那个 createview 是什么地方滴,我怎么找不着腻?