Skip to content

Added blur background effect and panelOffScreen option.#577

Open
amanzan wants to merge 3 commits into
umano:masterfrom
amanzan:master
Open

Added blur background effect and panelOffScreen option.#577
amanzan wants to merge 3 commits into
umano:masterfrom
amanzan:master

Conversation

@amanzan

@amanzan amanzan commented Nov 6, 2015

Copy link
Copy Markdown
<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

tokudu commented Sep 13, 2016

Copy link
Copy Markdown
Contributor

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

mehrikhan007 commented Mar 29, 2021

Copy link
Copy Markdown

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