UmAnusorn
UmAnusorn

Reputation: 11164

Is there a collection of default height for Android Material Design?

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

Answers (3)

ersin-ertan
ersin-ertan

Reputation: 2301

The material-components/material-components-android github repository has styles defined, that you can also use for your views.

Upvotes: 0

user3250969
user3250969

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

UmAnusorn
UmAnusorn

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

Related Questions