Contents not rendering outside GestureFrameLayout even if clipping is set to false
See original GitHub issueI have a GestureFrameLayout
that is at on an arbitrary position with an arbitrary size (let’s say 300dp by 300dp at center of screen) and I’d like to zoom in to its contents and allow them to show outside the GestureFrameLayout
itself. I tried setting any clipping I could think of to false (to children, to the gesture layout itself and to any parents above them), but nothing is drawn outside its bounds whenever I zoom or move the contents inside the GestureFrameLayout
.
Is it suppose to clip the contents even if the GestureFrameLayout
is set to not clip its children? Is there a way to correct this issue?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
android - clipChildren is not working even though set to false?
In my application I am trying to move images using animation. When I try to animate the image is cutting even ...
Read more >Fix CAMERA CLIPPING Issues in Blender - YouTube
In this video, learn how to adjust your camera settings so that you don't run into clipping issues inside of Blender 2.8!
Read more >How to Fix Viewport Clipping in Blender - YouTube
Let's break down an easy way to fix viewport clipping in Blender. Join us over on the Immersive Limit forum for more content...
Read more >Vulkan: Clip Children has wrong blend mode and a rendering ...
Instead the child renders behind its child and does not clip it. Said granchild is still clipped by the top-level parent, though.
Read more >Camera not rendering objects closer than its far clipping ...
Nothing that is outside the camera frustum will be rendered. Not even a single pixel. You should not move far clipping away as...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As said you need to set
android:clipChildren="false"
to the parent view(s) not to theGestureFrameLayout
.GestureFrameLayout
itself does not clip its children, but its parents are clipping it by default.In the sample app I’m using “merge” as parent tag, you cannot set
android:clipChildren="false"
to it. Instead you should either change it toFrameLayout
or disable children clipping from code.I’ll close this issue as it is not related to the library.
It does work indeed if I set the
GestureViewLayout
inside theFrameLayout
like you mentioned, thanks for the the explanation. I did not notice it was being merged at first, now it make sense.