android自动生成dimens适配文件,无需Java工具类( 四 )

332dp333dp334dp335dp336dp337dp338dp339dp340dp341dp342dp343dp344dp345dp346dp347dp348dp349dp350dp351dp352dp353dp354dp355dp356dp357dp358dp359dp360dp365dp370dp400dp410dp422dp472dp500dp600dp640dp720dp6sp7sp8sp9sp10sp11sp12sp13sp14sp15sp16sp17sp18sp19sp20sp21sp22sp23sp24sp25sp28sp30sp32sp34sp36sp38sp40sp42sp48sp
3.点击右键->->点击ok
显示这个提示则说明添加成功
点击OK即可看到自动生成的.xml适配文件
之后再布局文件中宽度和高度引用dimen文件中的数据 , 这样可以根据手机尺寸进行自适应的展现 。
!]()
//分割线
还有一个.文件用于配置生成和不生成的分辨率的文件
############################################################################# Start with '#' is annotate.## In front of '=' is key, cannot be modified.## More information to visit:##http://blog.csdn.net/fesdgasdgasdg/article/details/52325590##http://download.csdn.net/detail/fesdgasdgasdg/9913744##https://github.com/mengzhinan/PhoneScreenMatch############################################################################### You need to refresh or reopen the project every time you modify the configuration,# or you can't get the latest configuration parameters.############################################################################### Base dp value for screen match. Cut the screen into [base_dp] parts.# Data type is double. System default value is 360.# I advise you not to modify the value, be careful !!!!!!!!! _^_*_*base_dp=600# Also need to match the phone screen of [match_dp].# If you have another dp values.# System default values is 240,320,384,392,400,410,411,480,533,592,600,640,662,720,768,800,811,820,960,961,1024,1280,1365match_dp=800# If you not wanna to match dp values above. Write some above values here, append value with "," .# For example: 811,961,1365ignore_dp=240,320,384,392,400,410,411,480,533,592,600,640,662,720,768,800,811,820,960,961,1024,1365# They're not android module name. If has more??????split with , Symbol.# If you set, it will not show in SelectDialog.# If you have, write here and append value with "," .# For example: testLibrary,commonModule# System default values is .gradle, gradle, .idea, build, .gitignore_module_name=# Use which module under the values/dimen.xml file to do the base file,# and generated dimen.xml file store in this module?# Default value is 'app'.match_module=app# Don't show select dialog again when use this plugin.# System screen match will use the last selected module name or default module name.# You can give value true or false. Default value is false.not_show_dialog=false# Do you want to generate the default example dimens.xml file?# In path of .../projectName/screenMatch_example_dimens.xml, It does not affect your project code.# You can give value true or false. Default value is false.not_create_default_dimens=false# Does the font scale the same size as the DP? May not be accuracy.# You can give value true or false. Default value is true. Also need scaled.is_match_font_sp=true# Do you want to create values-wXXXdp folder or values-swXXXdp folder ?# I suggest you create values-swXXXdp folder,# because I had a problem when I was working on the horizontal screen adapter.# values-swXXXdp folder can solve my problem.# If you want create values-swXXXdp folder, set "create_values_sw_folder=true",# otherwise set "create_values_sw_folder=true".# Default values is true.create_values_sw_folder=true