android-layout-inspector | Yet another android layout inspector | Android library
kandi X-RAY | android-layout-inspector Summary
kandi X-RAY | android-layout-inspector Summary
Yet another android layout inspector
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of android-layout-inspector
android-layout-inspector Key Features
android-layout-inspector Examples and Code Snippets
Community Discussions
Trending Discussions on android-layout-inspector
QUESTION
I'm writing automated UI tests for an Android app. However, sometimes the Layout Inspector fails to show the view hierarchy and instead displays an error:
Error obtaining view hierarchy: There was a timeout error capturing the layout data from the device. The device may be too slow, the captured view may be too complex, or the view may contain animations.
Please retry with a simplified view and ensure the device is responsive.
I've tried the solutions from this question, but none have worked for me. I'm using Android Studio 3.5.2 and am running the app on a physical device.
Is there a way to get the Layout Inspector to display more complex views? Or is it possible to increase the timeout?
...ANSWER
Answered 2020-Feb-21 at 19:07I found an unorthodox solution: Layout Inspector sometimes works when the app is sent to the background. The views will be shown as inactive, but it will still be possible to see their properties.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install android-layout-inspector
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page