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.

Click on child is enabled even when disabled in xml

See original GitHub issue

Steps to reproduce :

<com.otaliastudios.zoom.ZoomLayout
            android:id="@+id/zoom_layout"
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:layout_margin="8dp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/midGuideline"
            android:scrollbars="horizontal|vertical"
            app:hasClickableChildren="false"
            app:horizontalPanEnabled="false"
            app:verticalPanEnabled="false"
            app:zoomEnabled="false">

            <fr.hozakan.skylines.ui.ColorGridView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />

</com.otaliastudios.zoom.ZoomLayout>

Screenshot 2020-01-26 at 05 47 29

Touches where made in the circles (drawn on screen, not code modification), reflecting the touch as indicated, in a subset of the view, so I guess the issue is part due to matrix (since displaying touch at bad position but keeping ratio), part to a flag that should be updated/listened by the view.

Thank you for your work!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
natario1commented, Jan 26, 2020

That assumes you would read the documentation which does not seem to be the case. It’s already there.

0reactions
stale[bot]commented, Mar 11, 2020

This issue has been automatically marked as stale because it has not had activity in the last 20 days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable all click events of a layout? - Stack Overflow
You can pass View for disable all child click event. public static void enableDisableView(View view, boolean enabled) { view.setEnabled(enabled); if ( view ...
Read more >
How to Enable/Disable Click Listener on Views in Android?
Navigate to the app > res > layout > activity_main. xml and add the below code to that file. Below is the code...
Read more >
HTML DOM Input Checkbox disabled Property - W3Schools
Definition and Usage. The disabled property sets or returns whether a checkbox should be disabled, or not. A disabled element is unusable and...
Read more >
ListView - Android Developers
android:soundEffectsEnabled, Boolean that controls whether a view should have sound effects enabled for events such as clicking and touching.
Read more >
K44151603: Overview of the BIG-IP ASM XML profile - AskF5
The default is disabled, but after you upload a WSDL to the XML ... Delete: Click the Delete button to remove the selected...
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