
UETool 是一个各方人员(设计师、程序员、测试)都可以使用的调试工具。它可以作用于任何显示在屏幕上的 view,比如 Activity/Fragment/Dialog/PopupWindow 等等。
目前 UETool 提供以下功能:




| 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] 300px300px | | | TextView | | | | Text | Hello World | YES | | TextSize(sp) | 14 | YES | | TextColor | #DE000000 | YES | | IsBold | TRUE | YES | | SpanBitmap | [PICTURE] 72px39px | | | DrawableLeft | [PICTURE] 51px51px | | | DrawableRight | [PICTURE] 36px36px | | | DrawableTop | [PICTURE] 36px36px | | | DrawableBottom | [PICTURE] 36px36px | | | ImageView | | | | Bitmap | [PICTURE] 144px144px | | | ScaleType | CENTER_CROP | | | DraweeView | | | | CornerRadius | 2dp | | | ImageURI | https://avatars2.githubusercontent.com/u/1201438?s=200&v=4 | | | ActualScaleType | CENTER_CROP | | | IsSupportAnimation | TRUE | | | PlaceHolderImage | [PICTURE] 300px300px | | | | | |
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
debugImplementation 'com.github.eleme.UETool:uetool:1.3.2'
debugImplementation 'com.github.eleme.UETool:uetool-base:1.3.2'
releaseImplementation 'com.github.eleme.UETool:uetool-no-op:1.3.2'
// if you want to show more attrs about Fresco's DraweeView
debugImplementation 'com.github.eleme.UETool:uetool-fresco:1.3.2'
}
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);
$ claude mcp add UETool \
-- python -m otcore.mcp_server <graph>