Giter Site home page Giter Site logo

androidpixeldimengenerator's Introduction

AndroidPixelDimenGenerator

1

Android Studio插件简介

根据输入的像素来自动生成Android项目的dimen.xml文件,主要是为了适配国产Android TV盒子的各种分辨率。

下载方法

方法一:下载编译好的jar文件 - 文件位于out下的artifacts,打开Android Studio - Preferences - Plugins - Install plugin from disk - Restart Android Studio

方法二:官方插件库里搜索 https://plugins.jetbrains.com/plugin/9700-android-pixel-dimen-generator ,打开Android Studio - Preferences - Plugins - Browse repositories - Restart Android Studio

使用方法

  • 点击Tools菜单 - AndroidPixelDimenGenerator

  • 根据提示输入分辨率的取值范围和分辨率

  • 文件生成路径默认在当前项目的res,如果有多个module一般会在第一个的res中,

    如果遍历不到res文件夹,文件生成路径为当前项目的根目录。

注意事项

第一行是正数范围
1000
第二行是负数范围
-1000
1920 1080
宽分辨率空格高分辨率换行
1280 720
宽分辨率空格高分辨率换行

Building

gradle :runIdea

感谢

生成xml文件内容的代码来自于https://github.com/yann9/DimenGenerator

androidpixeldimengenerator's People

Contributors

kaedea avatar succlz123 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.