DropDownMenu icon indicating copy to clipboard operation
DropDownMenu copied to clipboard

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

Open liuchenGG opened this issue 7 years ago • 4 comments

其中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);

liuchenGG avatar Jul 21 '17 03:07 liuchenGG

同问

Jameshuihui avatar Oct 07 '17 07:10 Jameshuihui

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

babafall avatar Oct 20 '17 02:10 babafall

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

ytzht avatar Nov 09 '17 02:11 ytzht

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

XuEnhao avatar Jul 17 '18 07:07 XuEnhao