摘要:
异常:java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.原因:View是不能同时有两个parent的。builder.setView(linearLayout);其中linearLayout不要在Activity的onCreate()中赋值。改为在dialog中赋值就能解决此异常。LinearLayout linearLayout = (LinearLayout)findView 阅读全文
posted @ 2013-04-23 21:07
燃烧的CO2
阅读(877)
评论(0)
推荐(0)