{"id":18270185,"url":"https://github.com/lucasr/probe","last_synced_at":"2025-12-30T18:31:58.818Z","repository":{"id":20792617,"uuid":"24077804","full_name":"lucasr/probe","owner":"lucasr","description":"[DEPRECATED] Dissect layout traversals on Android","archived":true,"fork":false,"pushed_at":"2015-01-31T23:12:05.000Z","size":475,"stargazers_count":548,"open_issues_count":6,"forks_count":56,"subscribers_count":33,"default_branch":"master","last_synced_at":"2024-11-05T11:52:27.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucasr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-15T23:30:29.000Z","updated_at":"2024-10-04T16:17:11.000Z","dependencies_parsed_at":"2022-09-11T15:41:01.984Z","dependency_job_id":null,"html_url":"https://github.com/lucasr/probe","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasr%2Fprobe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasr%2Fprobe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasr%2Fprobe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasr%2Fprobe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasr","download_url":"https://codeload.github.com/lucasr/probe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266476,"owners_count":20910831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:38:23.293Z","updated_at":"2025-12-17T16:43:45.398Z","avatar_url":"https://github.com/lucasr.png","language":"Java","readme":"Probe\n=====\n\nDissect layout traversals on Android.\n\n![](images/sample.png)\n\n\nFeatures\n--------\n- Intercept `View` methods.\n  - `onMeasure(int, int)`\n  - `onLayout(boolean, int, int, int, int)`\n  - `draw(Canvas)` and `onDraw(Canvas)`\n  - `requestLayout()`\n- Override any of these methods on-the-fly.\n- Layout debugging:\n  - `OvermeasureInterceptor`: Tints views according to the number of times they got measured in a single traversal.\n  - `LayoutBoundsInterceptor`: Equivalent to Android's \"Show layout bounds\" developer option. The main difference being that you can show bounds only for specific views.\n\n\nUsage\n-----\n\n 1. Add buildscript dependency:\n\n  ```groovy\n  buildscript {\n      ...\n      dependencies {\n          ...\n          classpath 'org.lucasr.probe:gradle-plugin:0.1.3'\n      }\n  }\n  ```\n\n 2. Apply the plugin to your app’s `build.gradle`:\n \n  ```groovy\n  apply plugin: 'org.lucasr.probe'\n  ```\n\n 3. Enable Probe on a build variant:\n\n  ```groovy\n  probe {\n      buildVariants {\n          debug {\n              enabled = true\n          }\n      }\n  }\n  ```\n\n 4. Implement an `Interceptor`:\n\n  ```java\n  public class DrawGreen extends Interceptor {\n      private final Paint mPaint;\n  \n      public DrawGreen() {\n          mPaint = new Paint();\n          mPaint.setColor(Color.GREEN);\n      }\n  \n      @Override\n      public void onDraw(View view, Canvas canvas) {\n          canvas.drawPaint(mPaint);\n      }\n  }\n  ```\n\n\n 2. Deploy your `Interceptor` with an (optional) `Filter`:\n \n ```java\n public final class MainActivity extends Activity {\n     @Override\n     protected void onCreate(Bundle savedInstanceState) {\n         Probe.deploy(this, new DrawGreen(), new Filter.ViewId(R.id.view2));\n         super.onCreate(savedInstanceState);\n         setContentView(R.id.main_activity);\n     }\n }\n ```\n\n\nDownload\n--------\n\nDownload [the latest JAR][1] or grab via Gradle:\n\n```groovy\ncompile 'org.lucasr.probe:probe:0.1.3'\n```\n\nor Maven:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.lucasr.probe\u003c/groupId\u003e\n  \u003cartifactId\u003eprobe\u003c/artifactId\u003e\n  \u003cversion\u003e0.1.3\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n\nLicense\n--------\n\n    Copyright 2014 Lucas Rocha\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n [1]: https://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases\u0026g=org.lucasr.probe\u0026a=probe\u0026e=aar\u0026v=LATEST\n","funding_links":[],"categories":["etc","Libs"],"sub_categories":["\u003cA NAME=\"Tools\"\u003e\u003c/A\u003eTools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasr%2Fprobe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasr%2Fprobe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasr%2Fprobe/lists"}