UETool 是一个各方人员(设计师、程序员、测试)都可以使用的调试工具

网友投稿 714 2022-11-03

UETool 是一个各方人员(设计师、程序员、测试)都可以使用的调试工具

UETool 是一个各方人员(设计师、程序员、测试)都可以使用的调试工具

INTRODUCTION

中文版

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 paramYou can check ValidViews and choose which target view you want (if offered UETool isn’t what you want)Show two view's relative positionsShow gridding for checking view alignmentSupport Android PSupport show view's current FragmentShow activity's Fragment treeShow view's view holder name if exist

EFFECT

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
#FF8F8F8F -> #FF688FDB
[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

dependencies { debugImplementation 'me.ele:uetool:1.2.4' releaseImplementation 'me.ele:uetool-no-op:1.2.4' // if you want to show more attrs about Fresco's DraweeView debugImplementation 'me.ele:uetool-fresco:1.2.4'}

Usage

show floating window

UETool.showUETMenu();UETool.showUETMenu(int y);

dismiss floating window

UETool.dismissUETMenu();

filter out view which you don't want to select

UETool.putFilterClass(Class viewClazz);UETool.putFilterClass(String viewClassName);

customize with your view

// step 1, implements IAttrspublic class UETFresco implements IAttrs { @Override public List getAttrs(Element element) { } }// step 2, put in UEToolUETool.putAttrsProviderClass(Class customizeClazz);UETool.putAttrsProviderClass(String customizeClassName);

License

MIT

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Phusion Passenger:Ruby, Python和Node.js的一个快速和健壮的web服务器和应用程序服务器
下一篇:这是一个简单的JS库,用于处理Web应用程序中的粘贴/拖放事件
相关文章

 发表评论

暂时没有评论,来抢沙发吧~