dongjunkun / DropDownMenu

一个实用的多条件筛选菜单
3.59k stars 787 forks source link

为什么我用Recyclerview当ContentView死活不显示 #41

Open liuchenGG opened 7 years ago

liuchenGG commented 7 years ago

其中view就是有包含RecyclerView的布局 View view = LayoutInflater.from(this).inflate(R.layout.layout_recyclerview,null); RecyclerView recyclerView = view.findViewById(R.id.mRecyclerview); 。。省略adapter。。。 mDropDownMenu.setDropDownMenu(Arrays.asList(headers), popupViews, view);

Jameshuihui commented 7 years ago

同问

babafall commented 7 years ago

同问,有人知道怎么解决吗?

ytzht commented 7 years ago

mDropDownMenu.setDropDownMenu(Arrays.asList(headers), popupViews, recyclerView);

XuEnhao commented 6 years ago

mDropDownMenu.setDropDownMenu(Arrays.asList(headers), popupViews, recyclerView); The specified child already has a parent. You must call removeView() on the child's parent first.
这个错误有人碰到过吗