Skip to content
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

Added blur background effect and panelOffScreen option. #577

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

amanzan
Copy link

@amanzan amanzan commented Nov 6, 2015

<com.sothree.slidinguppanel.SlidingUpPanelLayout
    ...
    sothree:umanoBlurBackground="true">
...

blur

<com.sothree.slidinguppanel.SlidingUpPanelLayout
    ...
    sothree:panelOffScreen="true">
...

If the panelOffScreen attribute is true in the xml, the panel will keep the sliding until it's located off screen. If gravity=bottom, it will be above the screen (see gif below).

paneloffscreen

http://im2.ezgif.com/tmp/ezgif-3862700634.gif

@amanzan amanzan mentioned this pull request Nov 6, 2015
Alberto Manzano Torregrosa added 2 commits May 19, 2016 22:32
…d off screen (above or below, depending on the gravity)
… alignParentBottom="true", we were missing "notificationbarheight" pixels. Now it aligns correctly.
@amanzan amanzan changed the title Added panelOffScreen option. Added panelOffScreen option and blur background effect. May 21, 2016
@amanzan amanzan changed the title Added panelOffScreen option and blur background effect. Added blur background effect and panelOffScreen option. May 21, 2016
@tokudu
Copy link
Contributor

tokudu commented Sep 13, 2016

I don't think the GlassView needs to a part of the library. You can simply blur the content by having an onslidelistener. I'll leave this open as an example

@mehrikhan007
Copy link

mehrikhan007 commented Mar 29, 2021

I have made changes in my code according to the suggestions provided by @amanzan. it works great for the current use case where we put androidbg as background image and nothing in main content except toolbar.

I'm using OCR camera in main content, i have implemented same for my use case but failed to get the desired result. It does not blur the camera view. It would be greatly appreciatd if you put some light on it about how would I get the desired blur effect for camera view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants