简体   繁体   中英

How do you implement material design spec dimensions

Reading the material design spec, there are dimensions listed for padding, font size etc... is there a univeral list of constants that i can use to incorporate in my app? I can see things like:

 android:textAppearance="?textAppearanceListItemSmall"

  style="@style/Base.TextAppearance.AppCompat.Body2"

Is there a universal way of accessing these names/constants? as right now seems painful trying to guess from the spec what the name of the constant is, (and where to find it)

Default colors and dimens per Material Design guidelines and Android Design guidelines:

https://github.com/DmitryMalkovich/material-design-dimens

Example

@dimen/material_layout_keylines_screen_edge_margin
@dimen/material_layout_keylines_horizontal_mobile_margin
...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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