(七十四)Android showDialog时报错requestFeature() must be called before adding content

出现此问题是由于dialog.show()之前调用了dialog.setContentView()或者dialog.getwindow()等,正确的应该是dialog.show()之后调用dialog.setContentView()或者dialog.getwindow()

 

posted @ 2015-08-04 12:42  小菜美妞成长中  阅读(357)  评论(0编辑  收藏  举报