• Stars
    star
    113
  • Rank 310,115 (Top 7 %)
  • Language
    HTML
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

#Hierarchy Viewer

Hierarchy Viewer is a library which allows to display views tree of your application in the simple way on your Gooogle Chrome browser. ##How to use?

###Download

Via gradle. In main build.gradle :

allprojects {
    repositories {
        ...
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots"
        }
    }
}

Add library:

compile 'com.polidea:hierarchyviewer:1.0.2'

or Maven. Add plugin repository:

<pluginRepository>
    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
</pluginRepository>

Add library:

<dependency>
  <groupId>com.polidea</groupId>
  <artifactId>hierarchyviewer</artifactId>
  <version>1.0.1-SNAPSHOT</version>
</dependency>

It is a stable version of library

###In code

If you want to just display your views tree - without your custom values or your custom views - you have to call the start(Context) static method from HierarchyViewer class, in the onCreate() method in your application object as is shown in the code below:

public class YourApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        HierarchyViewer.start(this);
    }
}

If you create your custom view and you want to display some custom values for your view you have to implement your own model for this view which extends from model correspondent for view.

For example:

You created you own MyTextView which contains members superHint as is shown in the code below:

public class MyTextView extends TextView {
    private String supperHint;
    public MyTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
        supperHint = "Default super hint";
    }
    
    public void setSupperHint(String supperHint){
        this.supperHint = supperHint;
    }
    public String getSupperHint() {
        return supperHint;
    }
}

If you want to display superHint value you have to create ViewModelInfor which extends TextViewModelInfo (if you extended view which is not supported by Hierarchy View Library you can extends ViewModelInfo) as is shown in the code below:

public class MyTextViewModelInfo extends TextViewModelInfo {
   @SerializedName("my_custom_item_value")
   String myCustomItem;
   
   @Override
   public void setDataFromView(View view, ConvertersContainer convertersContainer) {
       super.setDataFromView(view, convertersContainer);
       myCustomItem = ((MyTextView) view).getSupperHint();
   }
}

Now you have to add your view model info for confing which is passed as param for Hierarchy Viewer Library as is shown in the code below:

public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Config config = new Config.Builder()
            .add(MyTextView.class, new MyTextViewModelInfo())
            .build();
        HierarchyViewer.start(this, config);
    }
}

Your value will be displayed in properties table as MY_CUSTOM_ITEM_VALUE.

###Using When you run your applicaiton you will see notification which will inform you about server ip address. Imporatnt! Your computer has to be in the same network as your device.

notification

When you will open link in your browser you wil see infromation about your views tree.Imporatnt! This works only on Google Chrome.

web

##Main Contributors

Polidea developers

##Polidea

Visit our side

##Used libraries

##License

MIT.

For details see LICENSE

More Repositories

1

RxBluetoothKit

iOS & OSX Bluetooth library for RxSwift
Swift
1,408
star
2

SiriusObfuscator

C++
467
star
3

cmake-nRF5x

cmake script for nRF5 series SoC
C
121
star
4

Cockpit

Easily define a set of parameters that can be accessed and changed by the developers via built-in compact UI at runtime.
Kotlin
119
star
5

Cellular-Data-Network-Simulator

Webapp to monitor network usage and simulate network link conditions
Shell
100
star
6

tree-view-list-android

Provide configurable tree view list for android devices
Java
82
star
7

android-zoom-view

Android zooming view
Java
76
star
8

blemulator_flutter

BLEmulator Flutter: the Flutter BLE peripheral simulator
Dart
73
star
9

android-coverflow

Simple implementation of android's cover flow widget.
Java
68
star
10

basset-ios

Converting vector based images to iOS-style PNG(s) tool that organizes them in XCode Assets
Python
53
star
11

state-machine-android

A lightweight state machine implementation for Android.
Java
24
star
12

SOCK

Simple Omitter of Conflicts Kit - tool that prevents some of merge conflicts in .pbxproj file in Xcode projects
Python
23
star
13

the-missing-android-xml-junit-test-runner

Test runner that produces standard junit XML output file
Java
22
star
14

PLVisualAttributeConstraints

Custom VFL (Visual Format Language) for creating NSLayoutConstraint's. Offers more readable and concise replacement for constraintWithItem:attribute:relatedBy:toItem:attribute:multiplier:constant: (NSLayoutConstraint, AutoLayout mechanism)
Objective-C
22
star
15

react-native-blemulator

BLE simulator for react-native-ble-plx
TypeScript
20
star
16

Health2Fitbit

Simple tool that exports steps from HealthKit (eg. from Apple Watch) to Fitbit
Objective-C
17
star
17

android-section-list

Provides implementation of list which is divided to sections
Java
15
star
18

AndroidImageCache

LRU based Bitmap cache for Android. In Addition WebImageView for loading images from web resources.
Java
15
star
19

Polithings

Set of drivers for Android Things
Kotlin
14
star
20

better-gesture-detector

Android gesture detector better than default one
Java
13
star
21

SiriusObfuscator-SymbolExtractorAndRenamer

C++
11
star
22

ResourceSweeper

Python
11
star
23

PLObservers

Small tool for fast implementation of multi-observer pattern in Objective-C
Objective-C
9
star
24

android-image-manager

Image manager for android applications.
Java
8
star
25

recycler-view-adapters

A set of RecyclerView adapters, that are adding some great new features.
Java
8
star
26

android-flip3d

Android widget that allows for 3D-flipping of alternate views
Java
7
star
27

PLCoreDataUtils

A set of helper methods for CoreData
Objective-C
6
star
28

PLImageManager

image manager/downloader for iOS
Objective-C
6
star
29

Shuttle-Backend

Shuttle makes easy, secure and fast mobile apps distribution possible. It allows delivering iOS and Android mobile applications to stakeholders from the very beginning of the cooperation with the app creators. To try out our solution, simply use our code and if you need frontend and mobile app β€” contact us directly!
Groovy
6
star
30

at_candle

Example of candle powered by Android Things
Kotlin
4
star
31

android-notification-utils

Small set of utilities used by Polidea to develop android notifications
Java
4
star
32

PLColors

Objective-C library to create UIColor/NSColor objects based on the HEX color representation.
Objective-C
4
star
33

SiriusObfuscator-FileExtractor

Ruby
4
star
34

SiriusObfuscator-VerificationSuite

Swift
4
star
35

PLXCoreBluetooth-RACExtensions

Reactive Cocoa Extensions to CoreBluetooth
Objective-C
4
star
36

PLXFrameLayout

AutoLayout on frames
Objective-C
3
star
37

android-menu-navigator

Build navigation from json menu description
Java
3
star
38

dag-checks

The dag-checks consist of checks that can help you in maintaining your Apache Airflow instance.
Python
3
star
39

PLXImageManager

Image manager/downloader for iOS
Objective-C
2
star
40

mce-heatmap

Heatmap from MCE
JavaScript
1
star
41

PIXIE

Firmware for beautiful PIXIE device.
C++
1
star
42

docker-101

Example Docker project to help you bootstrap your awesome apps.
CSS
1
star
43

PLXColors

Objective-C library to create UIColor/NSColor objects based on the HEX color representation.
Objective-C
1
star
44

FrameLayout

AutoLayout on frames. This repo has been moved to
Objective-C
1
star
45

PLXObservers

Small tool for fast implementation of multi-observer pattern in Objective-C
Objective-C
1
star
46

PLXVisualAttributeConstraints

Custom VFL (Visual Format Language) for creating NSLayoutConstraint's. Offers more readable and concise replacement for constraintWithItem:attribute:relatedBy:toItem:attribute:multiplier:constant: (NSLayoutConstraint, AutoLayout mechanism)
Objective-C
1
star