多么标准的三句话啊,结果居然崩了...
m_rlMain = (RelativeLayout)this.findViewById(R.id.rl_main);
View layout = this.getLayoutInflater().inflate(R.layout.layout_choose_user, null);
m_rlMain.addView(layout);
报错提示"addView() on a null object refenrence"也就是说,layout是空的?!
我layout_choose_user.xml明明就有啊!
求救啊...
------解决思路----------------------
应该是findView的时候,m_rlMain 没找到