简体   繁体   English

如何找到Material Design UI元素的尺寸?

[英]How to find dimensions for Material Design UI Elements?

When trying to pick padding and width and margin for UI elements, I see that some default values pop up in the XML. 尝试为UI元素选择填充以及宽度和边距时,我看到XML中弹出了一些默认值。 This makes me think --> Is there a standard set of measurements that I can use for material design instead of trying to guess what looks right? 这使我想到->是否有一套标准的测量值可用于材料设计,而不是试图猜测什么看起来正确?

Like in the picture below, where specifically in the documentation can i find the list of all dimensions available? 如下图所示,我在文档的哪里可以找到所有可用尺寸的列表?

在此处输入图片说明

Android specifies certain widths and heights that you should use for your application. Android指定了应用于应用程序的某些宽度和高度。 For example the horizontal and vertical activity margins, the padding in TextView or EditText . 例如,水平和垂直活动边距, TextViewEditText的填充。 See https://material.google.com/layout/metrics-keylines.html for the guidelines. 有关指南,请参见https://material.google.com/layout/metrics-keylines.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM