Switch layout bounds added as a new command #130
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this branch I've added an option to switch "Show Layout Bounds"
I've always needed this option on my IDE and other options such as the command in terminal, or Dev Tools app does not fit very well specially when you are running on multiple devices and have to worry about the
-s
option and anadb devices
😃. As a result, I've decided to create a plugin and found your great repo and forked it.I would be so happy if you merge this feature in the plugin so others can also use it
How I did this:
I've added ResponseReceiver class which keeps the executed command's response using a data class called
ResponseHolder
and then I rungetprop debug.layout
to see if it is enabled or not. After that, I callsetprop debug.layout false/true
and subsequently, I poke the system to refresh settings usingservice call activity 1599295570
https://susuthapa19961227.medium.com/enable-layout-debugging-in-android-using-adb-64016d755441