{"id":13467133,"url":"https://github.com/eleme/UETool","last_synced_at":"2025-03-26T01:30:26.684Z","repository":{"id":33666190,"uuid":"133632841","full_name":"eleme/UETool","owner":"eleme","description":"Show/edit any view's attributions on the screen.","archived":false,"fork":false,"pushed_at":"2022-11-01T08:08:23.000Z","size":17639,"stargazers_count":3257,"open_issues_count":3,"forks_count":338,"subscribers_count":79,"default_branch":"master","last_synced_at":"2024-08-01T15:07:42.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eleme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-16T08:13:17.000Z","updated_at":"2024-06-28T06:50:19.000Z","dependencies_parsed_at":"2023-01-15T02:00:56.949Z","dependency_job_id":null,"html_url":"https://github.com/eleme/UETool","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2FUETool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2FUETool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2FUETool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2FUETool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eleme","download_url":"https://codeload.github.com/eleme/UETool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222100827,"owners_count":16931670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T15:00:53.412Z","updated_at":"2024-10-29T19:32:15.719Z","avatar_url":"https://github.com/eleme.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"UETool [![GitHub release](https://img.shields.io/github/release/eleme/UETool.svg?style=social)](https://github.com/eleme/UETool/releases) [![platform](https://img.shields.io/badge/platform-android-brightgreen.svg)](https://developer.android.com/index.html) [![license](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/eleme/UETool/blob/master/LICENSE)\n======\n\n![](https://github.com/eleme/UETool/blob/master/art/uet_banner.jpeg)\n\n## INTRODUCTION\n\n[中文版](https://github.com/eleme/UETool/blob/master/README_zh.md)\n\nUETool 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.\n\nPresently, UETool provides the following functionalities:\n\n- Move any view on the screen (selecting view repeatedly will select its parent's view)\n- Show/edit normal view's attributes such as TextView's text, textSize, textColor etc.\n- Show two view's relative positions\n- Show grid for checking view alignment\n- Support Android P\n- Show view's current Fragment\n- Show activity's Fragment tree\n- Show view's view holder name if it exist\n- Easily customize any view's attributes you want simply, such as business parameters\n\n- If you are using Fresco's DraweeView, UETool shows more properties like ImageURI, PlaceHolderImage, CornerRadius etc.\n- If the view selected by UETool isn’t what you want, you can check ValidViews to choose which target view you want\n\n## UETool's Effects:\n\n\u003cdiv\u003e\n\u003cimg width=\"270\" height=\"480\" src=\"https://github.com/eleme/UETool/blob/master/art/move_view.gif\"/\u003e\n\n\u003cimg width=\"270\" height=\"480\" src=\"https://github.com/eleme/UETool/blob/master/art/show_image_uri.gif\"/\u003e\n\n\u003cbr/\u003e\n\n\u003cimg width=\"270\" height=\"480\" src=\"https://github.com/eleme/UETool/blob/master/art/relative_position.gif\"/\u003e\n\n\u003cimg width=\"270\" height=\"480\" src=\"https://github.com/eleme/UETool/blob/master/art/show_gridding.png\"/\u003e\n\u003c/div\u003e\n\n\n## ATTRIBUTE LIST\n\n| Attribute | Value Sample | Editable |\n| --- | --- | --- |\n| Move | if you checked it, you can move view easily |  |\n| ValidViews | sometimes target view which UETool offered isn’t you want, you can check it and choose which you want |  |\n| Class | android.widget.LinearLayout |  |\n| Id | 0x7f0d009c |  |\n| ResName | btn |  |\n| Clickble | TRUE |  |\n| Focoused | FALSE |  |\n| Width(dp) | 107 | YES |\n| Height(dp) | 19 | YES |\n| Alpha | 1.0 |  |\n| PaddingLeft(dp) | 10 | YES |\n| PaddingRight(dp) | 10 | YES |\n| PaddingTop(dp) | 10 | YES |\n| PaddingBottom(dp) | 10 | YES |\n| Background | #90000000 \u003cbr/\u003e #FF8F8F8F -\u003e #FF688FDB \u003cbr/\u003e [PICTURE] 300px*300px |  |\n| **TextView** |  |  |\n| Text | Hello World | YES |\n| TextSize(sp) | 14 | YES |\n| TextColor | #DE000000 | YES |\n| IsBold | TRUE | YES |\n| SpanBitmap | [PICTURE] 72px*39px |  |\n| DrawableLeft | [PICTURE] 51px*51px |  |\n| DrawableRight | [PICTURE] 36px*36px |  |\n| DrawableTop | [PICTURE] 36px*36px |  |\n| DrawableBottom | [PICTURE] 36px*36px |  |\n| **ImageView** |  |  |\n| Bitmap | [PICTURE] 144px*144px |  |\n| ScaleType | CENTER_CROP |  |\n| **DraweeView** |  |  |\n| CornerRadius | 2dp |  |\n| ImageURI | https://avatars2.githubusercontent.com/u/1201438?s=200\u0026v=4 |  |\n| ActualScaleType | CENTER_CROP |  |\n| IsSupportAnimation | TRUE |  |\n| PlaceHolderImage | [PICTURE] 300px*300px |  |\n|  |  |  |\n\n\n## HOW TO USE \n\n### Installation\n\n```gradle\nallprojects {\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n\ndependencies {\n  debugImplementation 'com.github.eleme.UETool:uetool:1.3.4'\n  debugImplementation 'com.github.eleme.UETool:uetool-base:1.3.4'\n  releaseImplementation 'com.github.eleme.UETool:uetool-no-op:1.3.4'\n  \n  // if you want to show more attrs about Fresco's DraweeView\n  debugImplementation 'com.github.eleme.UETool:uetool-fresco:1.3.4'\n}\n```\n\n### Usage\n\n#### Show floating window\n\n```java\nUETool.showUETMenu();\n\nUETool.showUETMenu(int y);\n```\n\n#### Dismiss floating window\n\n```java\nUETool.dismissUETMenu();\n```\n\n#### Filter out unwanted views from selection\n\n```java\nUETool.putFilterClass(Class viewClazz);\n\nUETool.putFilterClass(String viewClassName);\n```\n\n#### Customize your view\n\n```java\n\n// step 1, implement IAttrs\n\npublic class UETFresco implements IAttrs {\n  @Override public List\u003cItem\u003e getAttrs(Element element) {\n  \n  }  \n}\n\n// step 2, put in UETool\n\nUETool.putAttrsProviderClass(Class customizeClazz);\n\nUETool.putAttrsProviderClass(String customizeClassName);\n\n```\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feleme%2FUETool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feleme%2FUETool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feleme%2FUETool/lists"}