Skip to content
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

Switch layout bounds added as a new command #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amin-amini
Copy link

@amin-amini amin-amini commented Mar 1, 2021

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 an adb 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 run getprop debug.layout to see if it is enabled or not. After that, I call setprop debug.layout false/true and subsequently, I poke the system to refresh settings using service call activity 1599295570
https://susuthapa19961227.medium.com/enable-layout-debugging-in-android-using-adb-64016d755441

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
@mustafaozhan
Copy link

This PR probably Resolves #107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants