-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
点击背景变暗怎么让某一个区域变暗,不是所有的变暗 #12
Comments
或者指定某一个区域不变暗,其他的变暗,实际开发中很重要 |
@douya40 |
|
不变暗就不设置这个属性 |
mCustomPopWindow= new CustomPopWindow.PopupWindowBuilder(_mActivity)
|
对的,7.0 上,如果展示的是RecyclerView列表,WRAP_CONTENT 就会全屏展示,这个bug已经有提过,正在排查修改 |
这里提个建议,就是点击弹出popwindow之后,像我现在在做一个筛选嘛,当点击了之后在下面弹出筛选条件,如果加背景变暗的话,全局变暗了,这并不是一般的需求的样式,一般都是在popwindow下面背景变暗,而不是全局的,不知这里可不可以封装一个popwindow下方变暗的效果。 |
可以试试这个背景变暗(方法2)方法,我自己封装的就是用的这方法变暗,只要是 ViewGroup 都可以变暗,而且可以设置变暗的颜色,但是必须 Api>=18。 |
|
点击背景变暗怎么让某一个区域变暗,不是所有的变暗
The text was updated successfully, but these errors were encountered: