# android-notes/SwissArmyKnife

android ui调试工具

Repository: https://github.com/android-notes/SwissArmyKnife
Canonical: https://ross.abutalabs.com/products/swissarmyknife
Language: Java
License: MIT
License Family: permissive
Topics: android, ui, debug, tools
Last push: 2025-08-28T07:30:44+00:00

## Health v2 (maintenance only)
Score: 52/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 39, release rhythm 40, longevity 100
- inputs: {"age_days": 3563, "days_push": 370, "days_rel": 469, "gap_med": 0, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1366, forks 230 (observed 2026-08-28T04:04:31.372546+00:00)

## What it is
SwissArmyKnife is an Android UI debugging library that overlays view information directly on the device screen, such as text size, colors, margins, paddings, view dimensions, and Activity/Fragment names. It supports picking views, measuring distances between views, dragging views, and a screen color picker.

## Use cases
- inspect android view properties on device
- measure distance between two android views
- pick a color from the android screen
- show margins and paddings of views on screen
- identify current activity and fragment names
- drag views to test layouts

## When to choose
- debugging android UI layouts directly on a device or emulator
- you need on-screen view metrics like dp/px sizes, margins, and text attributes
- you want to identify which Activity or Fragment is currently displayed

## When to avoid
- you need automated UI tests rather than manual visual debugging
- your project targets Android versions below 5.0
- you need a desktop-based layout inspector like Android Studio's Layout Inspector

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, gui
- domain: mobile-development, developer-tools, android-tools
- platform: -
- tags: ui-debugging, view-inspector, layout-inspection, color-picker, on-device-tools, debugging, android, mobile

## Member repositories
- android-notes/SwissArmyKnife (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:31.372546+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:41:11.372052+00:00, confidence not recorded.
  - readme: https://github.com/android-notes/SwissArmyKnife (fetched 2026-08-28T04:04:31.372546+00:00, sha d4b37e12fddc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
