一键导入
xml-styling-skill
Guidelines for XML styling, custom attributes (attrs.xml), drawables, and programmatic UI updates in the :xml module.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guidelines for XML styling, custom attributes (attrs.xml), drawables, and programmatic UI updates in the :xml module.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | xml-styling-skill |
| description | Guidelines for XML styling, custom attributes (attrs.xml), drawables, and programmatic UI updates in the :xml module. |
| metadata | {"author":"Michael Winkler","version":"1.0"} |
This skill covers the extensive styling system used in the legacy XML module, including attributes, theme colors, and custom drawables.
The module is highly customizable via attrs.xml.
ecv_.color, boolean, and enum.res/values/colors.xml.A specialized "expressive" mode (ecv_expressive_ui) changes:
ecv_expressive_circle instead of standard ecv_circle.Many drawables are tinted at runtime using ColorStateList or setItemTint helper.
RippleDrawable.setItemTint(color) for expressive ripples.res/values/attr.xml: Source of truth for all configurable properties.res/drawable/: Contains complex XML drawables for ripples, backgrounds, and icons.res/layout/: Prefixed with ecv_ (e.g., ecv_event_calendar.xml).<attr name="ecv_my_new_property" format="..." /> to attr.xml.<declare-styleable name="EventCalendarView">.init block using withStyledAttributes.textView.setTextColor(myNewProperty)).InstanceState.StateModel if the property needs to survive configuration
changes.values/colors.xml and
values-night/colors.xml.Utils helpers for dimension conversion (getDimensInt) and tinting.基于 SOC 职业分类
AI-optimized instructions for developing Jetpack Compose UI in the :compose module. Focuses on KMP-ready state management and component patterns.
Core architectural principles and agentic workflows for the EventCalendar project. Optimized for KMP readiness.
AI-optimized instructions for developing View-based XML UI in the :xml module. Updated for KMP-compatible models.
Technical instructions for the custom View components in the :xml module, including EventCalendarView and EventCalendarSingleWeekView.