• Stars
    star
    3,256
  • Rank 13,188 (Top 0.3 %)
  • Language
    Java
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 1 year ago

Reviews

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

Repository Details

Show/edit any view's attributions on the screen.

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:

  • Move any view on the screen (selecting view repeatedly will select its parent's view)

  • Show/edit normal view's attributes such as TextView's text, textSize, textColor etc.

  • Show two view's relative positions

  • Show grid for checking view alignment

  • Support Android P

  • Show view's current Fragment

  • Show activity's Fragment tree

  • Show view's view holder name if it exist

  • Easily customize any view's attributes you want simply, such as business parameters

  • If you are using Fresco's DraweeView, UETool shows more properties like ImageURI, PlaceHolderImage, CornerRadius etc.

  • If the view selected by UETool isn’t what you want, you can check ValidViews to choose which target view you want

UETool's Effects:


ATTRIBUTE LIST

Attribute Value Sample Editable
Move if you checked it, you can move view easily
ValidViews sometimes target view which UETool offered isn’t you want, you can check it and choose which you want
Class android.widget.LinearLayout
Id 0x7f0d009c
ResName btn
Clickble TRUE
Focoused FALSE
Width(dp) 107 YES
Height(dp) 19 YES
Alpha 1.0
PaddingLeft(dp) 10 YES
PaddingRight(dp) 10 YES
PaddingTop(dp) 10 YES
PaddingBottom(dp) 10 YES
Background #90000000
#FF8F8F8F -> #FF688FDB
[PICTURE] 300px*300px
TextView
Text Hello World YES
TextSize(sp) 14 YES
TextColor #DE000000 YES
IsBold TRUE YES
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
ScaleType CENTER_CROP
DraweeView
CornerRadius 2dp
ImageURI https://avatars2.githubusercontent.com/u/1201438?s=200&v=4
ActualScaleType CENTER_CROP
IsSupportAnimation TRUE
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

More Repositories

1

lancet

A lightweight and fast AOP framework for Android App and SDK developers
Java
2,083
star
2

morjs

基于小程序 DSL(微信、支付宝)的,可扩展的多端研发框架,支持一键将微信或支付宝小程序转换为微信、支付宝、百度、字节、QQ、快手、淘宝、钉钉等小程序 或 Web 应用。
TypeScript
1,400
star
3

Amigo

A hotfix library for Android platform, and not just this...
Java
1,365
star
4

Stinger

Stinger is a high-efficiency library with great compatibility, for aop in Objective-C, using libffi instead of Objective-C message forwarding. It is 20+ times faster than the Aspects, from message-sending to Aspect-oriented code ends.
Objective-C
988
star
5

corvus

A fast and lightweight Redis Cluster Proxy for Redis 3.0
C
791
star
6

Mess

a gradle plugin for minifying activities, services, receivers, providers and custom view
Groovy
682
star
7

Trojan

Trojan is an efficient mobile terminal lightweight log SDK
Java
390
star
8

dna

dna, dart native access. A lightweight dart to native super channel plugin, You can use it to invoke any native code directly in contextual and chained dart code.
Dart
365
star
9

bigkeeper

Efficiency improvement for iOS&Android modular development.
Ruby
212
star
10

Intimate

Intimate 提供了友好的 API 让 java 反射的使用更加简单平滑。 其最核心的价值在于 Intimate 将在编译期对 apk 内部代码的调用进行反射优化,完全免除反射的效率问题,使得反射调用就像普通调用一样快捷且无任何代价。
Java
202
star
11

duang

自动 CMS 生成工具
JavaScript
199
star
12

tedis

基于TiKV的兼容Redis协议的强一致性NoSQL数据库
Go
181
star
13

eleme.github.io

Eleme Developers Homepage
CSS
116
star
14

Sparrow

Vue
79
star
15

mobilists

mobile team blog
JavaScript
57
star
16

thrift-parser

To parse thrift file to a AST.
JavaScript
53
star
17

meepo

Event sourcing and broadcasting for database.
Python
52
star
18

ruskit

Redis cluster administration toolkit
Python
34
star
19

doctor

Metric based in-memory circuit breaker for python
Python
23
star
20

react-context-global-store

A simple global store based on React context
TypeScript
22
star
21

NVMImageMaker

API for chaining image drawing codes in Objc.
Objective-C
19
star
22

node-thrift-protocol

An implementation of thrift-protocol with node.
JavaScript
18
star
23

easyxml

php xml lib
PHP
17
star
24

SparrowSDK-iOS

Objective-C
16
star
25

NVMAspects

C
15
star
26

thrift-php

Mirror of apache thrift php lib
PHP
10
star
27

thrift-client

A nodejs thrift client
JavaScript
8
star
28

python-jianfan-mirror

mirror of https://code.google.com/p/python-jianfan/
Python
4
star
29

SparrowSDK-Android

4
star
30

thrift-tracker

Go
1
star
31

finite

F-init-E
JavaScript
1
star
32

python-geohash-mirror

mirror of https://code.google.com/p/python-geohash/
Python
1
star