Switch layout bounds added as a new command#130
Open
amin-amini wants to merge 1 commit intopbreault:masterfrom
Open
Switch layout bounds added as a new command#130amin-amini wants to merge 1 commit intopbreault:masterfrom
amin-amini wants to merge 1 commit intopbreault:masterfrom
Conversation
first I check `getprop debug.layout` to see if it is on or not, and then I call `setprop debug.layout false/true` and using `service call activity 1599295570` I poke the system to refresh settings https://susuthapa19961227.medium.com/enable-layout-debugging-in-android-using-adb-64016d755441
At252
approved these changes
Oct 16, 2024
|
This PR probably Resolves #107 |
mustafaozhan
approved these changes
Oct 24, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
-soption 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
ResponseHolderand then I rungetprop debug.layoutto see if it is enabled or not. After that, I callsetprop debug.layout false/trueand subsequently, I poke the system to refresh settings usingservice call activity 1599295570https://susuthapa19961227.medium.com/enable-layout-debugging-in-android-using-adb-64016d755441