https://github.com/wenlong-guo/dimens-generating
:fire::fire::fire: A plugin that supports multiple screens by generating dimens.xml for any width screen size using minimum width qualifier.:fire::fire::fire: 安卓最小宽度限定符插件.(生成多套dimens文件以及转换没有使用dimens的layout文件或者文件夹
https://github.com/wenlong-guo/dimens-generating
android android-studio-plugin app dimensions generate jetbrains-ides plugins
Last synced: 6 months ago
JSON representation
:fire::fire::fire: A plugin that supports multiple screens by generating dimens.xml for any width screen size using minimum width qualifier.:fire::fire::fire: 安卓最小宽度限定符插件.(生成多套dimens文件以及转换没有使用dimens的layout文件或者文件夹
- Host: GitHub
- URL: https://github.com/wenlong-guo/dimens-generating
- Owner: Wenlong-Guo
- License: mit
- Created: 2018-10-27T03:18:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T14:27:21.000Z (over 2 years ago)
- Last Synced: 2025-04-04T07:04:03.837Z (6 months ago)
- Topics: android, android-studio-plugin, app, dimensions, generate, jetbrains-ides, plugins
- Language: Kotlin
- Homepage:
- Size: 5 MB
- Stars: 23
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README-zh.md
- License: LICENSE
Awesome Lists containing this project
README
#
Dimens-Generating
---
[![Plugin Homepage][badge:plugin-homepage]][plugin-homepage]
[![License][license-img]][license]
[![Version][version-img]][plugin]
[![Downloads][badge:downloads]][plugin-homepage]:ballot_box_with_check: 安卓最小宽度限定符插件.(生成多套dimens文件以及转换没有使用dimens的layout文件或者文件夹)
[![Getting Started][badge:get-started-en]][get-started-en]
[![开始使用][badge:get-started-zh]][get-started-zh][//]: # ([![はじめに][badge:get-started-jp]][get-started-ja])
[//]: # ([![시작하기][badge:get-started-ko]][get-started-ko])
- [功能](#功能)
- [用法](#用法)
- [小贴士](#小贴士)
- [变更说明](#变更说明)
- [V3.1.0](#V310)
- [V3.0.0](#V300)
- [V2.0.5](#V205)
- [V2.0.4](#V204)
- [V2.0.3](#V203)
- [V2.0.0](#V200)
- [V1.2.0](#V120)
- [V1.1.0](#V110)
- [V1.0.1](#V101)
- [V1.0.0](#V100)
- [ScreenShot](#ScreenShot)
- [License](#License)
- [About My Github](#About-My-Github)
- [About Me](#About-Me)## 功能
* 根据所选的dimens.xml文件生成指定尺寸(可自定义)的dimens.xml文件。
* 当要生成的文件已经存在时,可以控制是否覆盖。
* 可以同时生成多个指定大小的文件。
* 在资源文件中,将layout.xml文件或layout文件夹中的DP、DIP或SP进行转换。## 用法
* 选择dimens.xml -> 右键 -> Generate Dimens -> 编辑选项 -> 点击 "Generate/生成" 按钮。
* 选择layout.xml或者layout文件夹 -> 右键 -> Converter Dimens -> 编辑选项 -> 点击 "Converter/转换" 按钮。## 小贴士
* 欢迎提出您的意见和建议。
* 如果您感觉该产品不错,请为我们点赞,非常感谢。## 变更说明
### V3.1.0
1. 功能:增加更新日志提示的功能### V3.0.0
1. 重构:使用 `Kotlin` 和 `Gradle` 构建项目。### V2.0.5
1. 修复:与 Android Studio 兼容性问题### V2.0.4
1. 修复 修复 issue #18### V2.0.3
1. 修复:修复了一些 V2.0.0 中的错误。### V2.0.0
1. 修复:修复 issue #6
2. 功能:添加 `Logo`
3. 功能:在资源文件中,将`layout.xml`或`layout folder`中的`DP` `DIP` `SP`进行转换。### V1.2.0
1. 重新设计了用户界面
2. 添加了保存配置函数
3. 支持`英语`和`中文`
4. 修复了资源属性以“dip”开头时无法转换的错误。### V1.1.0
1. 功能:自定义小数点位数
2. 功能:生成多个默认参数
3. 功能:自定义限定符名称### V1.0.1
1. 修正:解决了生成文件的指定大小无效的问题。### V1.0.0
1. 初始版本:生成 `dimens.xml`。## ScreenShot

## To Do List
* 支持日语和韩语
* 在dimens.xml批量生成指定命名规则的dp和sp
* 增加生成dimens.xml的文件夹命名规则
* 增强转换功能 附赠代码中引用的px dp dip sp的转换工具类
* 通过adb查看当前手机的屏幕信息License
-------Copyright 2023 Wenlong Guo
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 athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.## About Me
- 📍 北京(Beijing)
- 👨🎓 NKY.
- 👩💻 8 years of work.
- 🏢 待业 (求内推)
- ☎️ 17600133786
- wx : xiaoguo9745
- 📧 [guowenlong20000@sina.com](mailto:guowenlong20000@sina.com)
- ℹ️ 24k纯90后 没几年就35毕业了,毕业前开始总结安卓的经验,也算是给自己的这些年一个交代## About My Github
![]()
![]()
![]()
[license-img]: https://img.shields.io/badge/License-MIT-blue.svg
[license]: https://github.com/Wenlong-Guo/Dimens-Generating/blob/master/LICENSE
[version-img]: https://img.shields.io/badge/Jetbrains%20Plugins-V3.1.0-blue.svg
[plugin]: https://plugins.jetbrains.com/plugin/11290[badge:plugin-homepage]: https://img.shields.io/badge/plugin--homepage-Dimens--Generating-blue
[badge:downloads]: https://img.shields.io/jetbrains/plugin/d/11290.svg?style=flat-square&colorB=blue[plugin-homepage]: https://plugins.jetbrains.com/plugin/11290-dimens-generating
[dimens-generating-plugin]: https://plugins.jetbrains.com/plugin/11290-dimens-generating
[plugin-homepage]: https://plugins.jetbrains.com/plugin/8579-translation[badge:get-started-en]: https://img.shields.io/badge/Get%20Started-English-4CAF50?style=flat-square
[badge:get-started-zh]: https://img.shields.io/badge/%E5%BC%80%E5%A7%8B%E4%BD%BF%E7%94%A8-%E4%B8%AD%E6%96%87-2196F3?style=flat-square
[badge:get-started-jp]: https://img.shields.io/badge/%E3%81%AF%E3%81%98%E3%82%81%E3%81%AB-%E6%97%A5%E6%9C%AC%E8%AA%9E-009688?style=flat-square
[badge:get-started-ko]: https://img.shields.io/badge/%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0-%ED%95%9C%EA%B5%AD%EC%96%B4-7CB342?style=flat-square[get-started-en]: https://github.com/Wenlong-Guo/Dimens-Generating/blob/master/README.md
[get-started-zh]: https://github.com/Wenlong-Guo/Dimens-Generating/blob/master/README-zh.md
[get-started-ja]: https://github.com/Wenlong-Guo/Dimens-Generating/blob/master/README-ja.md
[get-started-ko]: https://github.com/Wenlong-Guo/Dimens-Generating/blob/master/README-ko.md