question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Contents not rendering outside GestureFrameLayout even if clipping is set to false

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
alexvasilkovcommented, Nov 26, 2020

As said you need to set android:clipChildren="false" to the parent view(s) not to the GestureFrameLayout. 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 to FrameLayout or disable children clipping from code.

I’ll close this issue as it is not related to the library.

0reactions
ParticleCorecommented, Nov 26, 2020

It does work indeed if I set the GestureViewLayout inside the FrameLayout like you mentioned, thanks for the the explanation. I did not notice it was being merged at first, now it make sense.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found