Home

Awesome

UETool GitHub release platform license

INTRODUCTION

中文版

UETool is a debug tool for anyone who needs to show and edit the attributes of user interface views on mobile devices. It works on Activity/Fragment/Dialog/PopupWindow or any other view.

Presently, UETool provides the following functionalities:

UETool's Effects:

<div> <img width="270" height="480" src="https://github.com/eleme/UETool/blob/master/art/move_view.gif"/> <img width="270" height="480" src="https://github.com/eleme/UETool/blob/master/art/show_image_uri.gif"/> <br/> <img width="270" height="480" src="https://github.com/eleme/UETool/blob/master/art/relative_position.gif"/> <img width="270" height="480" src="https://github.com/eleme/UETool/blob/master/art/show_gridding.png"/> </div>

ATTRIBUTE LIST

AttributeValue SampleEditable
Moveif you checked it, you can move view easily
ValidViewssometimes target view which UETool offered isn’t you want, you can check it and choose which you want
Classandroid.widget.LinearLayout
Id0x7f0d009c
ResNamebtn
ClickbleTRUE
FocousedFALSE
Width(dp)107YES
Height(dp)19YES
Alpha1.0
PaddingLeft(dp)10YES
PaddingRight(dp)10YES
PaddingTop(dp)10YES
PaddingBottom(dp)10YES
Background#90000000 <br/> #FF8F8F8F -> #FF688FDB <br/> [PICTURE] 300px*300px
TextView
TextHello WorldYES
TextSize(sp)14YES
TextColor#DE000000YES
IsBoldTRUEYES
SpanBitmap[PICTURE] 72px*39px
DrawableLeft[PICTURE] 51px*51px
DrawableRight[PICTURE] 36px*36px
DrawableTop[PICTURE] 36px*36px
DrawableBottom[PICTURE] 36px*36px
ImageView
Bitmap[PICTURE] 144px*144px
ScaleTypeCENTER_CROP
DraweeView
CornerRadius2dp
ImageURIhttps://avatars2.githubusercontent.com/u/1201438?s=200&v=4
ActualScaleTypeCENTER_CROP
IsSupportAnimationTRUE
PlaceHolderImage[PICTURE] 300px*300px

HOW TO USE

Installation

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
  debugImplementation 'com.github.eleme.UETool:uetool:1.3.4'
  debugImplementation 'com.github.eleme.UETool:uetool-base:1.3.4'
  releaseImplementation 'com.github.eleme.UETool:uetool-no-op:1.3.4'
  
  // if you want to show more attrs about Fresco's DraweeView
  debugImplementation 'com.github.eleme.UETool:uetool-fresco:1.3.4'
}

Usage

Show floating window

UETool.showUETMenu();

UETool.showUETMenu(int y);

Dismiss floating window

UETool.dismissUETMenu();

Filter out unwanted views from selection

UETool.putFilterClass(Class viewClazz);

UETool.putFilterClass(String viewClassName);

Customize your view


// step 1, implement IAttrs

public class UETFresco implements IAttrs {
  @Override public List<Item> getAttrs(Element element) {
  
  }  
}

// step 2, put in UETool

UETool.putAttrsProviderClass(Class customizeClazz);

UETool.putAttrsProviderClass(String customizeClassName);

License

MIT