UETool is a debug tool for anyone who needs show/edit one or more views' attributions. It works on Activity/Fragment/Dialog/PopupWindow or any other view.
At present, UETool provides functionality as follows:
- Move any view on the screen (selecting view repeatedly will select its parent's view)
- Show/edit normal view's attributions such as edit TextView's text、textSize、textColor etc.
- If you are using Fresco's DraweeView, UETool provides show more attributions like ImageURI、PlaceHolderImage、CornerRadius etc.
- You can customize any view's attributions you want with simple way such as some biz param
- You can check ValidViews and choose which target view you want (if offered UETool isn’t what you want)
- Show two view's relative positions
- Show gridding for checking view alignment
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 | |
dependencies {
debugCompile 'me.ele:uetool:1.0.14'
releaseCompile 'me.ele:uetool-no-op:1.0.14'
// if you want to show more attrs about Fresco's DraweeView
debugCompile 'me.ele:uetool-fresco:1.0.14'
}
UETool.showUETMenu();
UETool.showUETMenu(int y);
UETool.dismissUETMenu();
UETool.putFilterClass(Class viewClazz);
UETool.putFilterClass(String viewClassName);
// step 1, implements 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);
uetool's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.