-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(android): parity for Ti.UI.View clipMode #14191
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m1ga I tested the PR and it does not work as intended. It does not allow to change property once set. Also it does not work if we remove the clipMode
from the root yellow view
despite that the red view
has it clipMode: disabled
already.
android/titanium/src/java/org/appcelerator/titanium/view/TiUIView.java
Outdated
Show resolved
Hide resolved
Correct. Check the readme notes |
Ok, I didn't check the readme notes, but rather compared this property with iOS where it properly works as expected. I believe we should do more testing around it as Android has a pretty different behaviour to both these properties. And yes, it requires to be on top-level view, which actually we can set ourselves in SDK. I suggest that we introduce the |
very good idea! Yeah, I'll do some more testing and adjust the code but thanks for the check and the feedback 👍 |
Based on https://github.com/mbender74/clipview/tree/main/ti.clipview
Top: this PR with clipping disabled

bottom: default behavior
Run the code and click the first view to toggle:
Ti.UI.CLIP_MODE_DISABLED
andTi.UI.iOS.CLIP_MODE_DISABLED
for backwards compatibility