Reputation: 11164
I have been studied Material Design for Android.
I found that there are many default height.
e.g.
https://developer.android.com/design/downloads/index.html https://www.google.com/design/spec/layout/structure.html#structure-app-bar
But those resource is not in the format for Android developer.
I want something like default-dimen.xml
Is there any project, dimen.xml that store all those default height?
Upvotes: 1
Views: 958
Reputation: 2301
The material-components/material-components-android github repository has styles defined, that you can also use for your views.
Upvotes: 0
Reputation:
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
...
Upvotes: 0
Reputation: 11164
Then use dimen resources begin with md
e.g.
@dimen/md_button_padding_horizontal
for more default Material design layout dimen
https://gist.github.com/umitems/095c86666246c3f32a4e
ref.https://github.com/afollestad/material-dialogs
Upvotes: 1