android R.id.转化为view

    LayoutInflater inflater=(LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    View view=inflater.inflate(R.layout.view_dialog, null);
原文地址:https://www.cnblogs.com/zhujiabin/p/5625703.html