Agent skill

UI Dialogx Dialog

by afkT in afkT/DevUtils

需要对话框、弹窗、菜单、加载等待、轻提示(Toast 替代)、应用内通知、底部弹窗、 上下文菜单、全屏/自定义弹层或操作引导时,默认使用 DialogX (com.github.kongzue.DialogX,本工程已依赖)而非系统 AlertDialog/Toast/PopupMenu。

Apache-2.0Auto-check passedMobile

Install UI Dialogx Dialog

skills CLI
$ npx skills add afkT/DevUtils --skill ui-dialogx-dialog -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install afkT/DevUtils ui-dialogx-dialog --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/afkT/DevUtils.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/ui-dialogx-dialog .claude/skills/ui-dialogx-dialog && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ui-dialogx-dialog
GitHub stars
1.6k
Token cost
~1.1k tokens
SKILL.md length
199 words
Files
2 (incl. references)
Skills in repo
13
Repo updated
First seen
Licence
Apache-2.0

At a glance

需要对话框、弹窗、菜单、加载等待、轻提示(Toast 替代)、应用内通知、底部弹窗、 上下文菜单、全屏/自定义弹层或操作引导时,默认使用 DialogX (com.github.kongzue.DialogX,本工程已依赖)而非系统 AlertDialog/Toast/PopupMenu。

  • Works in 10 steps: 一行启动、无需… → show() vs build():要在显示前改主题/亮暗/复杂配置,用… → WaitDialog 与 TipDialog… → …
  • Mobile work in your project
  • SKILL.md covers 依赖与初始化, 组件选型(先选对组件), 核心事实(避坑) and 最小代码片段(速查), plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

UI Dialogx Dialog is an agent skill from afkT/DevUtils. 需要对话框、弹窗、菜单、加载等待、轻提示(Toast 替代)、应用内通知、底部弹窗、 上下文菜单、全屏/自定义弹层或操作引导时,默认使用 DialogX (com.github.kongzue.DialogX,本工程已依赖)而非系统 AlertDialog/Toast/PopupMenu。 SKILL 给组件选型、避坑事实与最小片段;组件静态工厂全表、链式 setter 全表、 全局配置 DialogX. 全表、TextInfo/InputInfo/ItemDivider、枚举与主题包坐标见 references/reference.md。 在用户要求弹对话框、做加载框、提示框、底部菜单、确认/输入弹窗、引导蒙层或替换原生 Dialog 时使用。

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/reference.md`).

It sits in Mobile. It works with GitHub and Gradle. The repository describes itself as: :fire: ( 持续更新,目前含 300+ 工具类 ) DevUtils 是一个 Android 工具库,主要根据不同功能模块,封装快捷使用的工具类及 API 方法调用。该项目尽可能的便于开发人员,快捷、高效开发安全可靠的项目。 The licence is Apache-2.0.

When your agent uses it

  • Mobile work in your project

Example prompts

  • “/ui-dialogx-dialog”

Workflow steps

10 steps, taken from the first numbered list in SKILL.md.

  1. 一行启动、无需 context:MessageDialog.show("标题","内容","确定"); 任意线程调用会自动切到 UI 线程。
  2. show() vs build():要在显示前改主题/亮暗/复杂配置,用 build() 链式配置后再 .show();build(IOSStyle.style()) 或 .setStyle(...) 单独指定样式。
  3. WaitDialog 与 TipDialog 是单例:WaitDialog.show("加载中…") 后直接 TipDialog.show("成功",WaitDialog.TYPE.SUCCESS,1500) 会无缝过渡,不要先 dismiss 再 show。
  4. 颜色一律传 @ColorInt int 值,不要传 R.color.x 资源 id(会无效):用 Color.parseColor("#...") 或 getColor(R.color.x)。
  5. 按钮/菜单点击回调返回值:onClick(...) return false 自动关闭对话框,return true 拦截关闭(保持显示)。
  6. 文字样式用 TextInfo,输入框用 InputInfo,菜单分隔线用 ItemDivider(字段见 references/reference.md § 数据类型)。
  7. 自定义布局用 new OnBindView(R.layout.xxx){ onBind(dialog, v){...} };ViewBinding 用 OnBindingView。
  8. 圆角/裁剪:.setRadius(px)(BottomDialog/BottomMenu 只影响左上右上);或全局 DialogX.default*BackgroundRadius。
  9. 菜单图标:.setIconResIds(...) 直传,某项无图标传 0;线性/面性图标随亮暗染色用 .setAutoTintIconInLightOrDarkMode(true) 或 OnIconChangeCallBack(true);网络异步图标用…
  10. BottomMenu 单选/多选:setSingleSelection()/setSelection(i) 单选、setMultiSelection()/setSelection(int[]) 多选,配合 OnMenuItemSelectListener 实时拿选中项。

What it can do on your machine

Read from SKILL.md and the folder at commit 6022ede. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are java).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

UI Dialogx Dialog loads about 1.1k tokens when it runs, and up to ~5k if it reads all its reference files. Until then it costs about 87 tokens; SKILL.md has 199 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~87
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from afkT/DevUtils at commit 6022ede, republished under its Apache-2.0 licence (© afkT). 199 words, ~1,080 tokens.

Download SKILL.mdSave it as .claude/skills/ui-dialogx-dialog/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
ui-dialogx-dialog
description
需要对话框、弹窗、菜单、加载等待、轻提示(Toast 替代)、应用内通知、底部弹窗、 上下文菜单、全屏/自定义弹层或操作引导时,默认使用 DialogX (com.github.kongzue.DialogX,本工程已依赖)而非系统 AlertDialog/Toast/PopupMenu。 SKILL 给组件选型、避坑事实与最小片段;组件静态工厂全表、链式 setter 全表、 全局配置 DialogX.* 全表、TextInfo/InputInfo/ItemDivider、枚举与主题包坐标见 references/reference.md。 在用户要求弹对话框、做加载框、提示框、底部菜单、确认/输入弹窗、引导蒙层或替换原生 Dialog 时使用。

DialogX:对话框 / 菜单 / 提示统一方案

本工程默认弹窗框架为 DialogX(GitHub)。需要任何对话框、菜单、加载、提示、通知时,优先用 DialogX,不要用系统 AlertDialog / Toast / PopupMenu / ProgressDialog。

依赖与初始化

  • 坐标已集中声明:DEPS_ROOT=file/gradle/config_libs.gradle 中 dialogX,由 file/deps/deps_project.gradle 以 api deps_lib.common_widget.dialogX 启用。勿重复写 GAV;改版本走 project-gradle-central-deps。
  • 当前仅引入核心模块(默认 Material 主题)。需 iOS/MIUI/Kongzue/MaterialYou 主题时,须额外引入主题包(坐标见 references/reference.md § 主题包)。
  • Application.onCreate 一般无需手动 DialogX.init(context)(库会自动初始化);全局风格/亮暗/默认文字样式在此处设置(见 references/reference.md § 全局配置)。

组件选型(先选对组件)

需求用哪个阻断式
标题+内容+1/2/3 按钮的提醒、确认MessageDialog是
上面的基础上要输入框InputDialog是
纵向列表式菜单(带标题/按钮)MessageMenu是
加载等待(环形/进度),可无缝切成功/失败WaitDialog / TipDialog(单例同一个)是
底部弹出对话框 / 底部菜单(可单选多选、图标)BottomDialog / BottomMenu是
类 Toast 的轻提示(可带图标/按钮,不阻断)PopTip否
应用内通知条(顶部下拉)PopNotification否
锚定某 View 的上下文菜单PopMenu否(半阻断)
从底部弹出、定制自由度高于 BottomDialogFullScreenDialog是
完全自定义布局+弹出方位(中/上/下/左/右)CustomDialog(ALIGN)可选
蒙层操作引导、舞台光高亮某 ViewGuideDialog(STAGE_LIGHT_TYPE)是

静态工厂方法全量重载见 references/reference.md § 组件工厂。

核心事实(避坑)

  1. 一行启动、无需 context:MessageDialog.show("标题","内容","确定"); 任意线程调用会自动切到 UI 线程。
  2. show() vs build():要在显示前改主题/亮暗/复杂配置,用 build() 链式配置后再 .show();build(IOSStyle.style()) 或 .setStyle(...) 单独指定样式。
  3. WaitDialog 与 TipDialog 是单例:WaitDialog.show("加载中…") 后直接 TipDialog.show("成功",WaitDialog.TYPE.SUCCESS,1500) 会无缝过渡,不要先 dismiss 再 show。
  4. 颜色一律传 @ColorInt int 值,不要传 R.color.x 资源 id(会无效):用 Color.parseColor("#...") 或 getColor(R.color.x)。
  5. 按钮/菜单点击回调返回值:onClick(...) return false 自动关闭对话框,return true 拦截关闭(保持显示)。
  6. 文字样式用 TextInfo,输入框用 InputInfo,菜单分隔线用 ItemDivider(字段见 references/reference.md § 数据类型)。
  7. 自定义布局用 new OnBindView<T>(R.layout.xxx){ onBind(dialog, v){...} };ViewBinding 用 OnBindingView<T, Binding>。
  8. 圆角/裁剪:.setRadius(px)(BottomDialog/BottomMenu 只影响左上右上);或全局 DialogX.default*BackgroundRadius。
  9. 菜单图标:.setIconResIds(...) 直传,某项无图标传 0;线性/面性图标随亮暗染色用 .setAutoTintIconInLightOrDarkMode(true) 或 OnIconChangeCallBack(true);网络异步图标用 MenuIconAdapter。
  10. BottomMenu 单选/多选:setSingleSelection()/setSelection(i) 单选、setMultiSelection()/setSelection(int[]) 多选,配合 OnMenuItemSelectListener 实时拿选中项。

最小代码片段(速查)

基础确认框

java
MessageDialog.show("提示", "确定删除?", "删除", "取消")
        .setOkButton((dialog, v) -> { /* ... */ return false; });

加载 → 结果(单例无缝)

java
WaitDialog.show("提交中…");
// 完成后:
TipDialog.show("提交成功", WaitDialog.TYPE.SUCCESS, 1500);

底部单选菜单(带图标)

java
BottomMenu.show("请选择", new String[]{"拍照", "相册"})
        .setIconResIds(R.mipmap.ic_camera, R.mipmap.ic_album)
        .setOnMenuItemClickListener((dialog, text, index) -> { /* ... */ return false; });

轻提示(Toast 替代)

java
PopTip.show("已复制").iconSuccess().autoDismiss(2000);

自定义布局对话框

java
CustomDialog.show(new OnBindView<CustomDialog>(R.layout.dialog_custom) {
    @Override public void onBind(CustomDialog dialog, View v) {
        // v.findViewById(...)
    }
}, CustomDialog.ALIGN.CENTER);

自检清单(写弹窗前)

  • 先按「组件选型」表选对组件,未用系统 AlertDialog/Toast/PopupMenu?
  • 需要显示前改主题/配置 → 用 build()...show() 而非直接 show()?
  • 加载到结果是否复用 WaitDialog/TipDialog 单例无缝切换?
  • 颜色都是 @ColorInt 值而非 R.color 资源 id?
  • 点击回调 return 值符合「拦截/关闭」预期?
  • 用到的主题(iOS/MIUI 等)对应主题包已在集中配置引入?
  • 方法重载/全局开关有疑义时已查 references/reference.md,必要时对照与依赖版本同 tag 的上游源码?

© afkT, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in .cursor/skills/ui-dialogx-dialog of afkT/DevUtils.

  • SKILL.md
  • references/reference.md

Open the folder on GitHubat commit 6022ede

Compare with similar skills

UI Dialogx Dialog next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

UI Dialogx Dialog compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
UI Dialogx Dialog this skillafkT/DevUtils1.6k—~1.1kAutomated safety check: PassApache-2.0
Test Metro LocallyZacSweers/metro1.4k—~1.2kAutomated safety check: PassApache-2.0
Capturing Preview Screenshots In CIskydoves/android-testing-skills334—~4.5kAutomated safety check: NotesApache-2.0
Setting Up Compose HotswanrosuH/EasyWatermark1.9k1 repos~3kAutomated safety check: PassApache-2.0
Android Cicddavila7/claude-code-templates33k—~2.2kAutomated safety check: PassMIT
Plan ReviewKenjiOhtsuka/harmonica131—~1kAutomated safety check: PassMIT

Similar skills

  • Test Metro Locally

    ZacSweers/metro

    Publish the current Metro checkout to Maven Local and verify it in an external consumer or reproducer.

    1.4k GitHub stars~1.2k tokensUpdated today
    MobileAuto-check passed
  • Capturing Preview Screenshots In CI

    skydoves/android-testing-skills

    A skill your agent uses to render every Jetpack Compose @Preview as a screenshot on a real Android device or emulator and publish a browsable HTML catalog from CI.

    334 GitHub stars~4.5k tokensUpdated 4 mo ago
    MobileAuto-check: notes
  • Setting Up Compose Hotswan

    rosuH/EasyWatermark

    A skill your agent uses to install and verify Compose HotSwan end to end so a developer goes from zero to working sub-second hot reload on a real device or emulator in one session.

    1.9k GitHub starsUsed in 1 repo~3k tokens
    MobileAuto-check passed
  • Android Cicd

    davila7/claude-code-templates

    Automated Android CI/CD pipeline to Google Play — supports TWA, React Native, Flutter, and native Android.

    33k GitHub stars~2.2k tokensUpdated today
    MobileAuto-check passed
  • Plan Review

    KenjiOhtsuka/harmonica

    A skill your agent uses when reviewing the Harmonica restart plan against reality — after a phase PR or milestone merges, before proposing the next phase, or when asked "are the specs up to date" /…

    131 GitHub stars~1k tokensUpdated 18 days ago
    DatabasesAuto-check passed
  • Review Dependencies

    tobihagemann/turbo

    Detect package managers and CI action pins, then discover outdated or vulnerable dependencies.

    408 GitHub stars~1.5k tokensUpdated yesterday
    DevOps & CloudAuto-check passed

More from afkT/DevUtils

All 13 skills in this repo
  • 依据 Android 官方「版本」文档完成平台适配:按版本号 N 抓取行为变更(所有应用、 targetSdk=N)、changes/features 子页与探索新功能/API;归纳影响项并落地到 Manifest/Gradle/工具类封装。在用户要求 Android 版本适配、行为变更排查、 targetSdk 升级、新 API 封装或对照…

    1.6k GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • 统一 Android XML 资源命名:layout、drawable、mipmap、color、values、id 的前缀与 snakecase 规则;把颜色/圆角/描边/状态编码进文件名(bg、border、textcolor…selector)。

    1.6k GitHub stars~1.3k tokensUpdated 1 mo ago
    Auto-check passed
  • 根据用户给出的 Java/Kotlin 工具类或 View 相关源码,设计并实现 androidx.databinding.BindingAdapter。

    1.6k GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • 对 DevUtils 工程(DEPSROOT=file/gradle、DEPSMANIFEST=file/deps)中定义的第三方库 GAV 依赖做版本查证与升级;结合 Maven Central、Google Maven、Gradle Plugin Portal、 JitPack 与 GitHub Releases/README 交叉校验「最新可用版本」;必要时修正…

    1.6k GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • 为布局 XML 中的控件默认补全 DevSimple(lib/DevSimple)的 ViewTheme 样式引用: 按控件继承链匹配 ViewTheme.&lt;类名&gt;,ImageView/AppCompatImageView 使用 ViewTheme.ImageView.FITXY,无匹配则用 ViewTheme.View。工作区内优先 Read…

    1.6k GitHub stars~727 tokensUpdated 1 mo ago
    Auto-check passed
  • UI Devwidget Round

    afkT/DevUtils

    在需要圆角矩形纯色背景、描边边框时,优先用 DevWidget(io.github.afkt:DevWidgetX)的 dev.widget.ui.round 包替代 shape / layer-list drawable。流程与核心坑在 SKILL,Round 系列 View、R.styleable.DevWidget 中 app:dev 属性及源码对照见…

    1.6k GitHub stars~880 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about UI Dialogx Dialog

What does UI Dialogx Dialog do?

需要对话框、弹窗、菜单、加载等待、轻提示(Toast 替代)、应用内通知、底部弹窗、 上下文菜单、全屏/自定义弹层或操作引导时,默认使用 DialogX (com.github.kongzue.DialogX,本工程已依赖)而非系统 AlertDialog/Toast/PopupMenu。. UI Dialogx Dialog is an agent skill from afkT/DevUtils.DialogX,本工程已依赖)而非系统 AlertDialog/Toast/PopupMenu。 SKILL 给组件选型、避坑事实与最小片段;组件静态工厂全表、链式 setter 全表、 全局配置 DialogX.

When should I use UI Dialogx Dialog?

UI Dialogx Dialog fits situations like: mobile work in your project.

How do I install UI Dialogx Dialog in Claude Code?

Run `npx skills add afkT/DevUtils --skill ui-dialogx-dialog -a claude-code`. Or copy the skill folder (.cursor/skills/ui-dialogx-dialog in afkT/DevUtils) into .claude/skills/ui-dialogx-dialog in your project. Claude Code loads it when a task matches its description.

How do I install UI Dialogx Dialog in Codex?

Run `npx skills add afkT/DevUtils --skill ui-dialogx-dialog -a codex`. Or copy the skill folder (.cursor/skills/ui-dialogx-dialog in afkT/DevUtils) into .agents/skills/ui-dialogx-dialog in your project. Codex loads it when a task matches its description.

Can I use UI Dialogx Dialog in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add afkT/DevUtils --skill ui-dialogx-dialog -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ui-dialogx-dialog, .gemini/skills/ui-dialogx-dialog, .github/skills/ui-dialogx-dialog and .opencode/skills/ui-dialogx-dialog in your project.

What does UI Dialogx Dialog need to run?

SKILL.md names no scripts, command-line tools or credentials: UI Dialogx Dialog is instructions for the agent only.

Does UI Dialogx Dialog access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is UI Dialogx Dialog safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does UI Dialogx Dialog use?

UI Dialogx Dialog is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does UI Dialogx Dialog use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.9k tokens, read only when the agent opens those files.

What are the alternatives to UI Dialogx Dialog?

Skills that share tags, products or a category with UI Dialogx Dialog: Test Metro Locally (ZacSweers/metro, 1.4k stars), Capturing Preview Screenshots In CI (skydoves/android-testing-skills, 334 stars), Setting Up Compose Hotswan (rosuH/EasyWatermark, 1.9k stars) and Android Cicd (davila7/claude-code-templates, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains UI Dialogx Dialog?

afkT (a GitHub user) maintains it in afkT/DevUtils, which has 1,613 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on September 2, 2026.

Source: afkT/DevUtils on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.