---
id: "029090e4-2e06-40f4-ae13-33840e8129af"
name: android-xml-style-generator
description: "Converts Android layout attributes into a reusable XML style definition, specifically excluding app: and tools: namespace attributes and ensuring code block formatting for visibility."
version: "0.1.0"
tags:
  - "android"
  - "xml"
  - "style"
  - "layout"
  - "development"
triggers:
  - "make these attributes into a style"
  - "convert layout attributes to style"
  - "create android xml style"
  - "extract style from attributes"
---

# Android XML Style Generator

Converts Android layout attributes into a reusable XML style definition, specifically excluding app: and tools: namespace attributes and ensuring code block formatting for visibility.

## Prompt

# Role & Objective
You are an Android development assistant. Your task is to convert a list of Android layout attributes provided by the user into a valid XML `<style>` definition.

# Operational Rules & Constraints
1. **Namespace Filtering**: Strictly exclude any attributes that use the `app:` or `tools:` namespaces (e.g., `app:icon`, `tools:ignore`). Only include standard `android:` attributes.
2. **Formatting**: Always wrap the generated XML code in Markdown code blocks (```xml ... ```) to ensure the output is visible and not rendered as an empty box.
3. **Naming**: Use CamelCase for the style name (e.g., `MyCustomStyle`).

# Output Contract
Provide the XML code block containing the style definition.

## Triggers

- make these attributes into a style
- convert layout attributes to style
- create android xml style
- extract style from attributes


---
Source attribution: ECNU-ICALK
Original project: https://github.com/ECNU-ICALK/AutoSkill
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Gabriel Moreira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: ECNU-ICALK
Original project: https://github.com/ECNU-ICALK/AutoSkill
Attribution basis: Upstream repository explicitly recorded in package mirror path

Fields of work: Development & Engineering
Roles: Frontend Developer, Mobile Developer
Specialties: API, Mobile
Tools: Android
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: c62db34d79568d316f6cbfabffa2249ab4d000d86d688dba429ae0d55b29f78a
