DropDownMenu icon indicating copy to clipboard operation
DropDownMenu copied to clipboard

一个实用的多条件筛选菜单

Results 58 DropDownMenu issues
Sort by recently updated
recently updated
newest added

contentView 无法设置为RecyclerView.所以做了如下设置: TextView contentView = new TextView(mActivityContext); // recyclerView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); contentView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 0)); contentView.setText(""); contentView.setGravity(Gravity.CENTER); contentView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20); 将高度设置0隐藏,但是下拉选择框时完全覆盖了底层的视图。点击弹窗时如何保持不覆盖掉全部? ![温热热无热无若](https://user-images.githubusercontent.com/38103065/99664252-de71ca80-2aa2-11eb-8b3a-0957f4a6792e.png) ![31231321](https://user-images.githubusercontent.com/38103065/99664284-ec275000-2aa2-11eb-8395-542c43528c5b.png)

我主页使用的是navigationbar+FrameLayout 在FrameLayout里面的fragment使用的DropDownMenu,当弹出的时候发现,遮盖不了下面的navigationbar ,因为主页布局限制了FrameLayout的范围,这个有什么好的办法吗,难道只能使用PopWindow了吗,求解

动态添加数据刷新控件的时候应该对每个容器进行判断,子控件不为空应该先移除子控件再添加子控件,不然就会出现app闪退崩溃的现象,或者会出现数据叠加显示问题 代码附上: public void setDropDownMenu(@NonNull List tabTexts, @NonNull List popupViews, @NonNull View contentView) { if(tabTexts.size() != popupViews.size()) { throw new IllegalArgumentException("params not match, tabTexts.size() should be equal popupViews.size()"); } else...

怎么获取选中的文字啊? 比如我选中了第三项,现在我要取得第三项的内容文字

The specified child already has a parent. You must call removeView() on the child's parent first.

怎么设置默认选中