catalinghita8 / android-screen-tracker

Screen tracker overlays on top of the target application the currently visible fragment and its activity host. The library provides insight on what UI components are currently on top of the stacks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screen tracker

Overview

Screen Tracker provides insight on what UI components are currently on top of the stacks for the target app. More precisely, it detects the currently visible fragment and its activity host. The components are displayed as an overlay on the screen.

Usage

  1. Import the dependency:

    build.gradle (app):

    dependencies {
        implementation 'com.github.catalinghita8:android-screen-tracker:0.3.1-alpha'
    }

    build.gradle (project):

    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
  2. Initialize the library in your application class:

    class MyApplication: Application() {
        override fun onCreate() {
            if (BuildConfig.DEBUG)
                ScreenTracker.initialize(this)
        }
    }
  3. Optionally, pass a TrackerConfiguration instance to the initialize call:

        ScreenTracker.initialize(
            application = this,
            configuration = TrackerConfiguration.Builder()
                .setIsTrackingFragments(true)
                .setIsFilteringLibFragments(true)
                .setTextSize(25f)
                .setTextHexColor("#FFA500")
                .setTextGravity(TrackerTextGravity.TOP)
                .setTextBackgroundHexColor("#FFFF00")
                .build()
        )

Release notes

Check out release notes here.

About

Screen tracker overlays on top of the target application the currently visible fragment and its activity host. The library provides insight on what UI components are currently on top of the stacks.

License:Apache License 2.0


Languages

Language:Kotlin 100.0%