{"repo":"Commit451/ResourcesPoet","free":true,"listed":false,"github":"https://github.com/Commit451/ResourcesPoet","clone":"git clone https://github.com/Commit451/ResourcesPoet.git","description":"Kotlin API for generating Android XML Resources","language":"Kotlin","stars":111,"topics":["android","resource","automation","javapoet","xml","strings","drawables","plurals","kotlinpoet","kotlin"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"ResourcePoet Kotlin API for generating Android XML Resources Gradle Basic Usage Write variables to the poet like: which would output this XML: To get the XML result as a file: You can even start with and modify an existing resource file: Supported Types Most resource types are supported. All look similar in usage: We do not allow configuration of more complicated resources like drawable and anim in the creation sense. Suppressing Lint Warnings You can add tools:ignore to suppress Android lint warnings on individual resources or at the top level: You can also set tools:ignore at the top-level element to suppress warnings for all resources in the file: Top-level and per-element ignores can be combined — the top-level applies to all children, and per-element ignores override or add to it. Additional Features Translatable Attribute on Arrays Mark string-arrays and typed-arrays as non-translatable: Style Format Attribute Add a format attribute to styles: Build to ByteArray Get the XML as a ByteArray for in-memory processing: Load Font-Family Files Use create(file, indent, elementType) to load existing font-family XML files: License -------- Copyright 2024 Commit 451 Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distrib","default_branch":null,"files":null,"tree":[],"storefront":"/r/Commit451","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Commit451/ResourcesPoet/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}