├── .gitignore
├── LICENSE
├── README.md
├── build.gradle
├── docs
├── README.md
├── about
│ ├── changelog.md
│ └── old_documentation.md
├── component
│ ├── bottom_navigation.md
│ ├── bottom_sheet.md
│ ├── buttons-fab.md
│ ├── buttons.md
│ ├── card.md
│ ├── chips.md
│ ├── dialogs.md
│ ├── dividers.md
│ ├── expansion_panels.md
│ ├── grid_lists.md
│ ├── lists.md
│ ├── menus.md
│ ├── steppers.md
│ ├── subheaders.md
│ └── tooltips.md
├── css
│ └── extra.css
├── images
│ ├── components_bottomnavigation_spec_fixed1.png
│ ├── components_bottomnavigation_spec_fixed2.png
│ ├── components_bottomnavigation_spec_shifting1.png
│ ├── components_bottomnavigation_spec_shifting2.png
│ ├── components_bottomnavigation_spec_shifting3.png
│ ├── components_bottomsheets_grid_specs.png
│ ├── components_bottomsheets_list_header_specs.png
│ ├── components_bottomsheets_list_headerless_specs.png
│ ├── components_buttons_flat_color.png
│ ├── components_buttons_raised_color.png
│ ├── components_buttons_size.png
│ ├── components_buttons_toggle_icons_color.png
│ ├── components_card_actions_horizontal.png
│ ├── components_card_actions_icons.png
│ ├── components_card_actions_vertical.png
│ ├── components_card_layout.png
│ ├── components_card_media_in_title.png
│ ├── components_card_media_shrunk.png
│ ├── components_card_supporting_text.png
│ ├── components_card_title_large.png
│ ├── components_card_title_small.png
│ ├── components_chip_basic.png
│ ├── components_chip_contact_open.png
│ ├── components_chip_deletable.png
│ ├── components_chips_contact_closed.png
│ ├── components_dialogs_actions_side.png
│ ├── components_dialogs_actions_stacked.png
│ ├── components_dialogs_content.png
│ ├── components_expansionpanel.png
│ ├── components_fab_edge_margin.png
│ ├── components_fab_size.png
│ ├── components_grid_list_footer_header.png
│ ├── components_lists_avatar.png
│ ├── components_lists_icon.png
│ ├── components_lists_text.png
│ ├── components_lists_types.png
│ ├── components_menu_simple_dimension.png
│ ├── components_menu_simple_edge.png
│ ├── components_stepper.png
│ ├── components_tooltip.png
│ ├── components_tooltip_edge.png
│ ├── layout_metrics_baseline.png
│ ├── layout_metrics_incremental.png
│ ├── layout_metrics_keyline_list.png
│ ├── layout_responsive_content_hierarchy.png
│ ├── layout_structure_appbar_common_values.png
│ ├── layout_structure_appbar_phone_default.png
│ ├── layout_structure_appbar_phone_extended.png
│ ├── logo-title.png
│ └── logo.png
├── index.md
├── layout
│ ├── elevation.md
│ ├── keylines.md
│ ├── responsive_ui.md
│ └── structure.md
└── style
│ ├── colors.md
│ ├── icons.md
│ └── typography.md
├── feedback.md
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── material-values
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ ├── main
│ ├── AndroidManifest.xml
│ ├── res-component
│ │ ├── values-w1280dp
│ │ │ └── bottom_sheet.xml
│ │ ├── values-w1440dp
│ │ │ └── bottom_sheet.xml
│ │ ├── values-w960dp
│ │ │ └── bottom_sheet.xml
│ │ └── values
│ │ │ ├── bottom_navigation.xml
│ │ │ ├── bottom_sheet.xml
│ │ │ ├── button.xml
│ │ │ ├── card.xml
│ │ │ ├── chip.xml
│ │ │ ├── dialog.xml
│ │ │ ├── divider.xml
│ │ │ ├── expansion_panel.xml
│ │ │ ├── grid_list.xml
│ │ │ ├── list.xml
│ │ │ ├── menu.xml
│ │ │ ├── public.xml
│ │ │ ├── selection_control.xml
│ │ │ ├── slider.xml
│ │ │ ├── snackbar.xml
│ │ │ ├── stepper.xml
│ │ │ ├── subheader.xml
│ │ │ ├── tab.xml
│ │ │ ├── text_field.xml
│ │ │ └── tooltip.xml
│ ├── res-layout
│ │ ├── values-land
│ │ │ ├── keylines.xml
│ │ │ └── structure.xml
│ │ ├── values-sw600dp
│ │ │ ├── keylines.xml
│ │ │ ├── responsive.xml
│ │ │ └── structure.xml
│ │ ├── values-v23
│ │ │ └── structure.xml
│ │ ├── values-w600dp
│ │ │ └── responsive.xml
│ │ ├── values-w840dp
│ │ │ └── responsive.xml
│ │ └── values
│ │ │ ├── elevation.xml
│ │ │ ├── keylines.xml
│ │ │ ├── public.xml
│ │ │ ├── responsive.xml
│ │ │ └── structure.xml
│ └── res-style
│ │ ├── color
│ │ ├── material_icon_color_dark_theme.xml
│ │ └── material_icon_color_light_theme.xml
│ │ ├── values-ar
│ │ └── typography.xml
│ │ ├── values-bn
│ │ └── typography.xml
│ │ ├── values-fa
│ │ └── typography.xml
│ │ ├── values-gu
│ │ └── typography.xml
│ │ ├── values-hi
│ │ └── typography.xml
│ │ ├── values-ja
│ │ └── typography.xml
│ │ ├── values-km
│ │ └── typography.xml
│ │ ├── values-kn
│ │ └── typography.xml
│ │ ├── values-ko
│ │ └── typography.xml
│ │ ├── values-lo
│ │ └── typography.xml
│ │ ├── values-ml
│ │ └── typography.xml
│ │ ├── values-mr
│ │ └── typography.xml
│ │ ├── values-my
│ │ └── typography.xml
│ │ ├── values-ne
│ │ └── typography.xml
│ │ ├── values-pa
│ │ └── typography.xml
│ │ ├── values-si
│ │ └── typography.xml
│ │ ├── values-ta
│ │ └── typography.xml
│ │ ├── values-te
│ │ └── typography.xml
│ │ ├── values-th
│ │ └── typography.xml
│ │ ├── values-ur
│ │ └── typography.xml
│ │ ├── values-vi
│ │ └── typography.xml
│ │ ├── values-zh
│ │ └── typography.xml
│ │ └── values
│ │ ├── colors.xml
│ │ ├── icons.xml
│ │ ├── public.xml
│ │ └── typography.xml
│ └── template
│ └── res
│ ├── layout
│ ├── material_template_list_single_line_avatar_text_dense.xml
│ ├── material_template_list_single_line_avatar_text_icon_dense.xml
│ ├── material_template_list_single_line_avatar_text_icon_normal.xml
│ ├── material_template_list_single_line_avatar_text_normal.xml
│ ├── material_template_list_single_line_icon_text_dense.xml
│ ├── material_template_list_single_line_icon_text_normal.xml
│ ├── material_template_list_single_line_text_only_dense.xml
│ ├── material_template_list_single_line_text_only_normal.xml
│ ├── material_template_list_three_line_three_text_avatar_text_dense.xml
│ ├── material_template_list_three_line_three_text_avatar_text_icon_dense.xml
│ ├── material_template_list_three_line_three_text_avatar_text_icon_normal.xml
│ ├── material_template_list_three_line_three_text_avatar_text_normal.xml
│ ├── material_template_list_three_line_three_text_icon_text_dense.xml
│ ├── material_template_list_three_line_three_text_icon_text_normal.xml
│ ├── material_template_list_three_line_three_text_text_only_dense.xml
│ ├── material_template_list_three_line_three_text_text_only_normal.xml
│ ├── material_template_list_three_line_two_text_avatar_text_dense.xml
│ ├── material_template_list_three_line_two_text_avatar_text_icon_dense.xml
│ ├── material_template_list_three_line_two_text_avatar_text_icon_normal.xml
│ ├── material_template_list_three_line_two_text_avatar_text_normal.xml
│ ├── material_template_list_three_line_two_text_icon_text_dense.xml
│ ├── material_template_list_three_line_two_text_icon_text_normal.xml
│ ├── material_template_list_three_line_two_text_text_only_dense.xml
│ ├── material_template_list_three_line_two_text_text_only_normal.xml
│ ├── material_template_list_two_line_avatar_text_dense.xml
│ ├── material_template_list_two_line_avatar_text_icon_dense.xml
│ ├── material_template_list_two_line_avatar_text_icon_normal.xml
│ ├── material_template_list_two_line_avatar_text_normal.xml
│ ├── material_template_list_two_line_icon_text_dense.xml
│ ├── material_template_list_two_line_icon_text_normal.xml
│ ├── material_template_list_two_line_text_only_dense.xml
│ └── material_template_list_two_line_text_only_normal.xml
│ └── values
│ └── strings.xml
├── mkdocs.yml
└── settings.gradle
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/
5 | .DS_Store
6 | /build
7 | /captures
8 | .externalNativeBuild
9 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Archived
2 | --------
3 |
4 | This repository has been archived.
5 |
6 | You can use [Material Components Android](https://github.com/material-components/material-components-android) directly, or other libraries ([Material Dialogs](https://github.com/afollestad/material-dialogs), [TapTargetView](https://github.com/KeepSafe/TapTargetView), etc.) for drop-in components.
7 |
8 | ----------------
9 |
10 | 
11 | [](https://bintray.com/aohayou/maven/material-values/_latestVersion)
12 | [](./LICENSE)
13 |
14 | 
15 |
16 | All the values from the [Material Design guidelines](https://material.google.com) defined in resources for Android.
17 |
18 | Use the [documentation](https://esnaultdev.github.io/MaterialValues/) for more information.
19 |
20 |
21 | Values
22 | ------
23 |
24 | Here is an overview of the values covered by this library:
25 |
26 | **Style**
27 |
28 | - [Color](https://esnaultdev.github.io/MaterialValues/style/colors/)
29 | - [Icons](https://esnaultdev.github.io/MaterialValues/style/icons/)
30 | - [Typography](https://esnaultdev.github.io/MaterialValues/style/typography/)
31 |
32 | **Layout**
33 |
34 | - [Metrics & keylines](https://esnaultdev.github.io/MaterialValues/layout/keylines/)
35 | - [Responsive UI](https://esnaultdev.github.io/MaterialValues/layout/responsive_ui/)
36 | - [Elevation](https://esnaultdev.github.io/MaterialValues/layout/elevation/)
37 | - [Structure](https://esnaultdev.github.io/MaterialValues/layout/structure/)
38 |
39 | **Components**
40 |
41 | - [Bottom navigation](https://esnaultdev.github.io/MaterialValues/component/bottom_navigation/)
42 | - [Bottom sheet](https://esnaultdev.github.io/MaterialValues/component/bottom_sheet/)
43 | - [Buttons](https://esnaultdev.github.io/MaterialValues/component/buttons/)
44 | - [Cards](https://esnaultdev.github.io/MaterialValues/component/card/)
45 | - [Chips](https://esnaultdev.github.io/MaterialValues/component/chips/)
46 | - [Dialogs](https://esnaultdev.github.io/MaterialValues/component/dialogs/)
47 | - [Dividers](https://esnaultdev.github.io/MaterialValues/component/dividers/)
48 | - [Expansion panels](https://esnaultdev.github.io/MaterialValues/component/expansion_panels/)
49 | - [Grid lists](https://esnaultdev.github.io/MaterialValues/component/grid_lists/)
50 | - [Lists](https://esnaultdev.github.io/MaterialValues/component/lists/)
51 | - [Menus](https://esnaultdev.github.io/MaterialValues/component/menus/)
52 | - [Steppers](https://esnaultdev.github.io/MaterialValues/component/steppers/)
53 | - [Subheaders](https://esnaultdev.github.io/MaterialValues/component/subheaders/)
54 | - [Tooltips](https://esnaultdev.github.io/MaterialValues/component/tooltips/)
55 |
56 |
57 | Usage
58 | -----
59 |
60 | Just add this dependency to your build.gradle:
61 | ```
62 | compile 'blue.aodev:material-values:1.1.1'
63 | ```
64 |
65 | The artifact is currently only available on jCenter, not mavenCentral.
66 | Make sure that your buildscript repositories include jCenter.
67 |
68 |
69 | Changelog
70 | ---------
71 |
72 | A changelog is available [here](https://esnaultdev.github.io/MaterialValues/about/changelog/).
73 |
74 | -----
75 |
76 | Inspired by DmitryMalkovich's [material-design-dimens](https://github.com/DmitryMalkovich/material-design-dimens).
77 |
78 | © 2016 Ao (Matthieu Esnault) - Released under [Apache-2.0 License](https://raw.githubusercontent.com/AoDevBlue/MaterialValues/master/LICENSE)
79 |
80 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/docs/README.md:
--------------------------------------------------------------------------------
1 | [Documentation website](https://aodevblue.github.io/MaterialValues/)
2 |
3 | The .md files in these folders are only used to generate the documentation.
4 |
5 |
--------------------------------------------------------------------------------
/docs/about/old_documentation.md:
--------------------------------------------------------------------------------
1 | # Old documentation
2 |
3 | The documentation hosted on this website matches the latest release.
4 | Check the footer to see what version is currently displayed.
5 |
6 | While it's better to keep your dependencies up-to-date, you can display an old version of the documentation. To do so:
7 |
8 | 1. Install [MkDocs](http://www.mkdocs.org/)
9 | 2. Clone the MaterialValues [repository](https://github.com/AoDevBlue/MaterialValues)
10 | 3. Checkout one of the version tags
11 | 4. Serve the documentation locally with `mkdocs serve`
12 | 5. Connect to it with your browser
13 |
--------------------------------------------------------------------------------
/docs/component/bottom_navigation.md:
--------------------------------------------------------------------------------
1 | # Bottom navigation
2 |
3 | ## Elevation
4 |
5 | Defined as `@dimen/material_elevation_bottom_nav_bar`.
6 |
7 |
8 | ## Fixed bottom navigation bar
9 |
10 | ### Action size
11 |
12 |
13 |
14 | 1. `@dimen/material_bottom_nav_bar_fixed_action_minimum_width`
15 | 2. `@dimen/material_bottom_nav_bar_fixed_action_maximum_width`
16 | 3. `@dimen/material_bottom_nav_bar_action_padding_horizontal`
17 |
18 | ### Bar specs
19 |
20 |
21 |
22 | 1. `@dimen/material_bottom_nav_bar_height`
23 | 2. `@dimen/material_bottom_nav_bar_action_icon_size`
24 | 3. `@dimen/material_bottom_nav_bar_action_label_padding_bottom`
25 | 4. `@dimen/material_bottom_nav_bar_fixed_action_active_icon_padding_top`
26 | 5. `@dimen/material_bottom_nav_bar_fixed_action_inactive_icon_padding_top`
27 | 6. `@dimen/material_bottom_nav_bar_fixed_action_active_label_text_size`
28 | 7. `@dimen/material_bottom_nav_bar_fixed_action_inactive_label_text_size`
29 |
30 |
31 | ## Shifting bottom navigation bar
32 |
33 | ### Action size
34 |
35 |
36 |
37 | 1. `@dimen/material_bottom_nav_bar_shifting_action_active_maximum_width`
38 | 2. `@dimen/material_bottom_nav_bar_shifting_action_active_minimum_width`
39 |
40 |
41 |
42 | 1. `@dimen/material_bottom_nav_bar_shifting_action_inactive_maximum_width`
43 | 2. `@dimen/material_bottom_nav_bar_shifting_action_inactive_minimum_width`
44 |
45 | ### Bar specs
46 |
47 |
48 |
49 | 1. `@dimen/material_bottom_nav_bar_height`
50 | 2. `@dimen/material_bottom_nav_bar_action_icon_size`
51 | 3. `@dimen/material_bottom_nav_bar_shifting_action_active_icon_padding_top`
52 | 4. `@dimen/material_bottom_nav_bar_action_label_padding_bottom`
53 | 5. `@dimen/material_bottom_nav_bar_shifting_action_inactive_icon_padding_vertical`
54 | 6. `@dimen/material_bottom_nav_bar_shifting_action_active_label_text_size`
55 |
56 |
57 | ---
58 |
59 | #### See also
60 |
61 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/bottom_navigation.xml)
62 |
63 | - [Bottom navigation (Material design)](https://material.google.com/components/bottom-navigation.html)
64 |
65 |
--------------------------------------------------------------------------------
/docs/component/bottom_sheet.md:
--------------------------------------------------------------------------------
1 | # Bottom sheet
2 |
3 | ## Elevation
4 |
5 | Defined as `@dimen/material_bottom_sheet_elevation`.
6 |
7 |
8 | ## Font and color
9 |
10 | | Name | Resource |
11 | | ---- | -------- |
12 | | Contents text size | `@dimen/material_bottom_sheet_contents_text_size` |
13 | | Contents text color | `@color/material_bottom_sheet_contents_text_color` |
14 | | Title text size | `@dimen/material_bottom_sheet_title_text_size` |
15 | | Title text color | `@color/material_bottom_sheet_title_text_color` |
16 |
17 | | Color | Resource |
18 | | ----- | -------- |
19 | | Sheet background | `@color/material_bottom_sheet_background_fill` |
20 | | Transparent overlay | `@color/material_bottom_sheet_transparent_overlay_fill` |
21 |
22 |
23 | ## List style
24 |
25 |
26 |
27 | 1. `@dimen/material_bottom_sheet_list_padding_horizontal`
28 | 2. `@dimen/material_bottom_sheet_list_item_label_padding_start`
29 | 3. `@dimen/material_bottom_sheet_list_item_icon_size`
30 | 4. `@dimen/material_bottom_sheet_list_item_height`
31 | 5. `@dimen/material_bottom_sheet_list_headerless_padding_top`
32 | 6. `@dimen/material_bottom_sheet_list_padding_bottom`
33 |
34 |
35 |
36 | 1. `@dimen/material_bottom_sheet_list_padding_horizontal`
37 | 2. `@dimen/material_bottom_sheet_list_item_label_padding_start`
38 | 3. `@dimen/material_bottom_sheet_list_item_icon_size`
39 | 4. `@dimen/material_bottom_sheet_list_item_height`
40 | 5. `@dimen/material_bottom_sheet_list_header_height`
41 | 6. `@dimen/material_bottom_sheet_list_padding_bottom`
42 | 7. `@dimen/material_bottom_sheet_list_divider_margin_top`
43 | 8. `@dimen/material_divider_height`
44 | 9. `@dimen/material_bottom_sheet_list_divider_margin_bottom`
45 |
46 |
47 | ## Grid style
48 |
49 |
50 |
51 | 1. `@dimen/material_bottom_sheet_grid_row_padding_top`
52 | 2. `@dimen/material_bottom_sheet_grid_item_icon_size`
53 | 3. `@dimen/material_bottom_sheet_grid_row_height`
54 | 4. `@dimen/material_bottom_sheet_grid_item_label_height`
55 | 5. `@dimen/material_bottom_sheet_grid_padding_horizontal`
56 | 6. `@dimen/material_bottom_sheet_grid_padding_bottom`
57 |
58 | The text size for labels in a grid style is `@dimen/material_bottom_sheet_grid_item_label_text_size`.
59 |
60 | ----
61 |
62 | ## Width (Tablet only)
63 |
64 | | Name | Resource |
65 | | ---- | -------- |
66 | | Minimum horizontal margin (increment) | `@integer/material_bottom_sheet_margin_horizontal_minimum_increment` |
67 | | Minimum horizontal margin | `@dimen/material_bottom_sheet_margin_horizontal_minimum` |
68 | | Minimum width (increment) | `@integer/material_bottom_sheet_width_minimum_increment` |
69 | | Minimum width | `@dimen/material_bottom_sheet_width_minimum` |
70 |
71 |
72 | ---
73 |
74 | #### See also
75 |
76 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/bottom_sheet.xml)
77 |
78 | - [Bottom sheets (Material design)](https://material.google.com/components/bottom-sheets.html)
79 |
80 |
--------------------------------------------------------------------------------
/docs/component/buttons-fab.md:
--------------------------------------------------------------------------------
1 | # Buttons: Floating action button
2 |
3 | ## Size
4 |
5 |
6 |
7 | 1. `@dimen/material_button_fab_size`
8 | 2. `@dimen/material_button_fab_mini_size`
9 | 3. `@dimen/material_button_fab_icon_size`
10 |
11 |
12 | ## Edge margin
13 |
14 |
15 |
16 | 1. `@dimen/material_button_fab_edge_margin`
17 |
18 | ---
19 |
20 | #### See also
21 |
22 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/button.xml)
23 |
24 | - [Buttons: FAB (Material design)](https://material.google.com/components/buttons-floating-action-button.html)
25 |
26 |
--------------------------------------------------------------------------------
/docs/component/buttons.md:
--------------------------------------------------------------------------------
1 | # Buttons
2 |
3 | ## Size and padding
4 |
5 |
6 |
7 | 1. `@dimen/material_button_height_minimum`
8 | 2. `@dimen/material_button_touch_target_height_minimum`
9 | 3. `@dimen/material_button_width_minimum`
10 | 4. `@dimen/material_button_gutter_horizontal`
11 | 5. `@dimen/material_button_padding_horizontal`
12 | 6. `@dimen/material_button_corner_radius`
13 |
14 |
15 | ## Flat button
16 |
17 | ### Elevation
18 |
19 | Defined as `@dimen/material_button_flat_elevation`
20 |
21 |
22 | ### Font and colors
23 |
24 |
25 |
26 | 1. `@dimen/material_typography_regular_button_text_size`, the color depends on the button color (default `@dimen/material_typography_primary_text_color_dark`).
27 | 2. `@dimen/material_typography_regular_button_text_size`, the color depends on the button color (default `@dimen/material_typography_primary_text_color_light`).
28 | 3. Same text size as 1), `@color/material_button_text_color_disabled_light_theme`
29 | 4. Same text size as 1), `@color/material_button_text_color_disabled_dark_theme`
30 | 5. `@color/material_button_flat_background_color_pressed_light_theme`
31 | 6. `@color/material_button_flat_background_color_pressed_dark_theme`
32 |
33 |
34 | ## Raised button
35 |
36 | ### Elevation
37 |
38 | | Elevation | Resource |
39 | | --------- | -------- |
40 | | Resting | `@dimen/material_button_raised_elevation_resting` |
41 | | Pressed | `@dimen/material_button_raised_elevation_pressed` |
42 |
43 | ### Font and colors
44 |
45 |
46 |
47 | 1. `@dimen/material_typography_regular_button_text_size`, the color depends on the button color (default `@dimen/material_typography_primary_text_color_dark`).
48 | 2. `@dimen/material_typography_regular_button_text_size`, the color depends on the button color (default `@dimen/material_typography_primary_text_color_light`).
49 | 3. Same text size as 1), `@color/material_button_text_color_disabled_light_theme`
50 | 4. Same text size as 1), `@color/material_button_text_color_disabled_dark_theme`
51 | 5. Color shade 500
52 | 6. Color shade 700
53 | 7. `@color/material_button_raised_background_color_disabled_light_theme`
54 | 8. `@color/material_button_raised_background_color_disabled_dark_theme`
55 |
56 |
57 | ## Icon toggles
58 |
59 |
60 |
61 | 1. `@color/material_button_icon_light_theme_light_icon_ripple_color`
62 | 2. `@color/material_button_icon_light_theme_dark_icon_ripple_color`
63 | 3. Same color with 26% opacity
64 | 4. `@color/material_button_icon_dark_theme_light_icon_ripple_color`
65 |
66 |
67 | ---
68 |
69 | #### See also
70 |
71 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/button.xml)
72 |
73 | - [Buttons (Material design)](https://material.google.com/components/buttons.html)
74 |
75 |
--------------------------------------------------------------------------------
/docs/component/chips.md:
--------------------------------------------------------------------------------
1 | # Chips
2 |
3 | ## Elevation
4 |
5 | | Name | Resource |
6 | | ---- | -------- |
7 | | Simple chip | `@dimen/material_chip_simple_elevation` |
8 | | Contact chip (closed) | `@dimen/material_chip_contact_closed_elevation` |
9 | | Contact chip (open) | `@dimen/material_chip_contact_open_elevation` |
10 |
11 | ## Simple chip
12 |
13 |
14 |
15 | 1. `@dimen/material_chip_height`
16 | 2. `@dimen/material_chip_simple_label_padding_start`
17 | 3. `@dimen/material_chip_simple_label_padding_start_after_icon`
18 | 4. `@dimen/material_chip_simple_label_padding_end`
19 | 5. `@dimen/material_chip_simple_label_text_size`
20 | 6. *Unspecified*
21 |
22 |
23 | ## Deletable chip
24 |
25 | Both simple and contact chips can be deletable.
26 |
27 |
28 |
29 | 1. `@dimen/material_chip_simple_remove_icon_size`
30 | 2. `@dimen/material_chip_simple_remove_icon_margin`
31 | 3. `@color/material_chip_simple_remove_icon_color`
32 |
33 |
34 | ## Contact chip
35 |
36 | ### Closed
37 |
38 |
39 |
40 | 1. `@dimen/material_chip_height`
41 | 2. `@dimen/material_chip_contact_closed_label_padding_vertical`
42 | 3. `@dimen/material_chip_contact_closed_label_padding_start`
43 | 4. `@dimen/material_chip_contact_closed_label_padding_end`
44 | 5. `@dimen/material_chip_contact_closed_label_text_size`
45 |
46 | ### Open
47 |
48 |
49 |
50 | 1. `@dimen/material_chip_contact_open_focused_height`
51 | 2. `@dimen/material_chip_contact_open_unfocused_height`
52 | 3. `@dimen/material_chip_contact_open_avatar_size`
53 | 4. `@dimen/material_chip_contact_open_padding_horizontal`
54 | 5. `@dimen/material_chip_contact_open_focused_padding_vertical`
55 | 6. `@dimen/material_chip_contact_open_name_text_size`
56 | 7. `@dimen/material_chip_contact_open_address_text_size`
57 |
58 |
59 | ---
60 |
61 | #### See also
62 |
63 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/chip.xml)
64 |
65 | - [Chips (Material design)](https://material.google.com/components/chips.html)
66 |
67 |
--------------------------------------------------------------------------------
/docs/component/dialogs.md:
--------------------------------------------------------------------------------
1 | # Dialogs
2 |
3 | ## Elevation
4 |
5 | Defined as `@material_dialog_elevation`.
6 |
7 |
8 | ## Size and edge margins
9 |
10 | | Value | Resource |
11 | | ----- | -------- |
12 | | Minimum width (increment) | `@dimen/material_dialog_width_minimum_increment` |
13 | | Minimum width | `@dimen/material_dialog_width_minimum` |
14 | | Minimum vertical edge margin | `@dimen/material_dialog_screen_edge_margin_minimum_vertical` |
15 | | Minimum horizontal edge margin | `@dimen/material_dialog_screen_edge_margin_minimum_horizontal` |
16 |
17 |
18 | ## Title and content
19 |
20 |
21 |
22 | 1. `@dimen/material_dialog_content_area_padding_horizontal`
23 | 2. `@dimen/material_dialog_content_area_padding_vertical`
24 | 3. `@dimen/material_dialog_content_area_title_content_margin`
25 | 4. Action area
26 |
27 | ## Actions
28 |
29 | ### Side by side
30 |
31 |
32 |
33 | 1. Non scrollable content
34 | 2. Scrollable content
35 | 3. `@dimen/material_dialog_actions_side_by_side_height`
36 | 4. `@dimen/material_dialog_actions_side_by_side_button_height`
37 | 5. `@dimen/material_dialog_actions_side_by_side_padding_end`
38 | 6. `@dimen/material_dialog_actions_side_by_side_padding_bottom`
39 | 7. `@dimen/material_dialog_actions_side_by_side_padding_top`
40 | 8. `@dimen/material_dialog_actions_side_by_side_padding_top_with_divider`
41 | 9. `@dimen/material_divider_height`
42 |
43 | ### Stacked
44 |
45 |
46 |
47 | 1. `@dimen/material_dialog_actions_stacked_button_height`
48 | 2. `@dimen/material_dialog_actions_stacked_padding_bottom`
49 | 3. `@dimen/material_dialog_actions_stacked_button_padding_end`
50 | 4. Dialog content
51 |
52 |
53 | ## Fullscreen dialog
54 |
55 | Documentation not yet available, check the raw values.
56 |
57 |
58 | ---
59 |
60 | #### See also
61 |
62 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/dialog.xml)
63 |
64 | - [Dialogs (Material design)](https://material.google.com/components/dialogs.html)
65 |
66 |
--------------------------------------------------------------------------------
/docs/component/dividers.md:
--------------------------------------------------------------------------------
1 | # Dividers
2 |
3 | ## Size
4 |
5 | | | |
6 | | ------ | ------ |
7 | | Height | `@dimen/material_divider_height` |
8 |
9 | ## Color
10 |
11 | | Theme | Resource |
12 | | ----- | -------- |
13 | | Light theme | `@color/material_divider_color_light_theme` |
14 | | Dark theme | `@color/material_divider_color_dark_theme` |
15 |
16 |
17 | ---
18 |
19 | #### See also
20 |
21 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/divider.xml)
22 |
23 | - [Dividers (Material design)](https://material.google.com/components/dividers.html)
24 |
25 |
--------------------------------------------------------------------------------
/docs/component/expansion_panels.md:
--------------------------------------------------------------------------------
1 | # Expansion panels
2 |
3 | ## Elevation
4 |
5 | The elevation is the same as the elements the expansion panel can connect with (typically, a card).
6 |
7 |
8 | ## Dimensions
9 |
10 |
11 |
12 | 1. `@dimen/material_expansion_panel_padding_horizontal`
13 | 2. `@dimen/material_expansion_panel_expand_icon_size`
14 | 3. `@dimen/material_expansion_panel_expand_icon_margin_start`
15 | 4. `@dimen/material_expansion_list_collapsed_height`
16 | 5. `@dimen/material_expansion_panel_expanded_margin_vertical`
17 | 6. `@dimen/material_expansion_panel_expanded_header_height`
18 | 7. `@dimen/material_expansion_panel_expanded_content_area_padding_bottom`
19 | 8. `@dimen/material_expansion_panel_expanded_action_area_padding_top`
20 | 9. `@dimen/material_expansion_panel_expanded_action_area_button_height`
21 | 10. `@dimen/material_expansion_panel_expanded_action_area_padding_bottom`
22 | 11. `@dimen/material_expansion_panel_expanded_action_area_button_margin_end`
23 | 12. `@dimen/material_expansion_panel_label_text_size` and `@color/material_expansion_panel_label_text_color`
24 | 13. `@dimen/material_expansion_panel_label_secondary_content_text_size` and `@color/material_expansion_panel_label_secondary_content_text_color`
25 |
26 | Note that action vertical padding (8. & 10.) is splitted because the top padding takes the divider height into account.
27 | It seems that a divider is always present in expansion panels, if it's not the case, use the bottom padding two times.
28 |
29 |
30 | ## Divider
31 |
32 | See [Dividers](dividers.md).
33 |
34 |
35 | ---
36 |
37 | #### See also
38 |
39 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/expansion_panel.xml)
40 |
41 | - [Expansion panels (Material design)](https://material.google.com/components/expansion-panels.html)
42 |
43 |
--------------------------------------------------------------------------------
/docs/component/grid_lists.md:
--------------------------------------------------------------------------------
1 | # Grid lists
2 |
3 | ## Spacing
4 |
5 | | Spacing | Resource |
6 | | ------- | -------- |
7 | | Small | `@dimen/material_grid_list_tile_spacing_small` |
8 | | Medium | `@dimen/material_grid_list_tile_spacing_medium` |
9 |
10 |
11 | ## Headers and footers
12 |
13 | ### Height
14 |
15 | | Type | Resource |
16 | | ---- | -------- |
17 | | Single line | `@dimen/material_grid_list_header_footer_single_line_height` |
18 | | Two-line | `@dimen/material_grid_list_header_footer_two_line_height` |
19 |
20 | ### Text size
21 |
22 | Two styles exist for headers and footers.
23 |
24 | In the material design guidelines, they are referred to as the 16/12 and 14/14 styles.
25 | In the following values, the 16/12 style is called "standard" and the 14/14 "alternative".
26 |
27 | | Value | Resource |
28 | | ----- | -------- |
29 | | Title (Standard) | `@dimen/material_grid_list_header_footer_title_text_size_standard` |
30 | | Title (Alternative) | `@dimen/material_grid_list_header_footer_title_text_size_alternative` |
31 | | Subtitle (Standard) | `@dimen/material_grid_list_header_footer_subtitle_text_size_standard` |
32 | | Subtitle (Alternative) | `@dimen/material_grid_list_header_footer_subtitle_text_size_alternative` |
33 |
34 | ## Dimensions
35 |
36 |
37 |
38 | 1. `@dimen/material_grid_list_header_footer_text_area_margin_start`
39 | 2. `@dimen/material_grid_list_header_footer_text_area_margin_vertical`
40 | 3. `@dimen/material_grid_list_header_footer_icon_padding_horizontal`
41 | 4. `@dimen/material_grid_list_header_footer_icon_size`
42 | 5. `@dimen/material_grid_list_header_footer_text_area_margin_end_after_icon`
43 | 6. `@dimen/material_grid_list_header_footer_text_area_margin_end_alone`
44 |
45 |
46 | ---
47 |
48 | #### See also
49 |
50 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/grid_list.xml)
51 |
52 | - [Grid lists (Material design)](https://material.google.com/components/grid-lists.html)
53 |
54 |
--------------------------------------------------------------------------------
/docs/component/lists.md:
--------------------------------------------------------------------------------
1 | # Lists
2 |
3 | The "normal" prefix is added to the guidelines name for non-dense lists values.
4 |
5 |
6 | ## List padding
7 |
8 | The padding at the top of the list, before the first element, has the following values.
9 |
10 | | Value | Resource |
11 | | ----- | -------- |
12 | | Padding vertical (Normal) | `@dimen/material_list_normal_padding_vertical` |
13 | | Padding vertical (Dense) | `@dimen/material_list_dense_padding_vertical` |
14 |
15 |
16 | ## Block position
17 |
18 | The values for the text and the icon are based on their relative position in the list item.
19 |
20 |
21 |
22 | | Figure label | List item type | Text position | Icon position |
23 | | ------------ | -------------- | ------------- | ------------- |
24 | | 1 | Text only | first & last | - |
25 | | 2 | Icon with text | second & last | first |
26 | | 3 | Avatar with text | second & last | - |
27 | | 4 | Avatar with text and icon | second | last |
28 |
29 | Since the avatar is always first when present, its related values don't depend on its position.
30 |
31 |
32 | ## Icon
33 |
34 |
35 |
36 | 1. `@dimen/material_list_icon_size`
37 | 2. `@dimen/material_list_icon_first_position_margin_start`
38 | 3. `@dimen/material_list_icon_last_position_margin_horizontal`
39 |
40 |
41 | ## Avatar
42 |
43 |
44 |
45 | 1. `@dimen/material_list_avatar_size`
46 | 2. `@dimen/material_list_avatar_margin_start`
47 |
48 |
49 | ## Text
50 |
51 | ### Size
52 |
53 | | Value | Resource |
54 | | ------ | -------- |
55 | | Primary text size (Normal) | `@dimen/material_list_normal_primary_text_size` |
56 | | Primary text size (Dense) | `@dimen/material_list_dense_primary_text_size` |
57 | | Secondary text size (Normal) | `@dimen/material_list_normal_secondary_text_size` |
58 | | Secondary text size (Dense) | `@dimen/material_list_dense_secondary_text_size` |
59 |
60 |
61 | ### Margin
62 |
63 |
64 |
65 | 1. `@dimen/material_list_text_first_position_margin_start`
66 | 2. `@dimen/material_list_text_second_position_edge_margin_start`
67 | 3. `@dimen/material_list_text_last_position_margin_end`
68 |
69 | 1) and 3) can be replaced by `@dimen/material_list_text_only_margin_horizontal` for text only items.
70 |
71 |
72 | ## Item height
73 |
74 | | Value | Resource |
75 | | ----- | -------- |
76 | | Single line without avatar (Normal) | `@dimen/material_list_single_line_without_avatar_normal_height` |
77 | | Single line without avatar (Dense) | `@dimen/material_list_single_line_without_avatar_dense_height` |
78 | | Single line with avatar (Normal) | `@dimen/material_list_single_line_with_avatar_normal_height` |
79 | | Single line with avatar (Dense) | `@dimen/material_list_single_line_with_avatar_dense_height` |
80 | | Two-line (Normal) | `@dimen/material_list_two_line_normal_height` |
81 | | Two-line (Dense) | `@dimen/material_list_two_line_dense_height` |
82 | | Three-line (Normal) | `@dimen/material_list_three_line_normal_height` |
83 | | Three-line (Dense) | `@dimen/material_list_three_line_dense_height` |
84 |
85 |
86 |
87 | ---
88 |
89 | #### See also
90 |
91 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/list.xml)
92 |
93 | - [Lists (Material design)](https://material.google.com/components/lists.html)
94 |
95 |
--------------------------------------------------------------------------------
/docs/component/menus.md:
--------------------------------------------------------------------------------
1 | # Menus
2 |
3 | ## Elevation
4 |
5 | | Component | Resource |
6 | | --------- | -------- |
7 | | Menu | `@dimen/material_menu_elevation` |
8 | | Submenu (elevation increment per level) | `@dimen/material_menu_submenu_elevation_increment` |
9 |
10 |
11 | ## Width
12 |
13 | | Name | Resource |
14 | | ---- | -------- |
15 | | Minimum width (increment) | `@integer/material_menu_simple_width_minimum_increment` |
16 | | Minimum width | `@dimen/material_menu_simple_width_minimum` |
17 | | Maximum width (increment) | `@integer/material_menu_simple_width_maximum_increment` |
18 | | Maximum width | `@dimen/material_menu_simple_width_maximum` |
19 |
20 |
21 | ## Dimensions
22 |
23 |
24 |
25 | 1. `@dimen/material_menu_simple_padding_vertical`
26 | 2. `@dimen/material_menu_simple_item_padding_horizontal`
27 | 3. `@dimen/material_menu_simple_text_padding_bottom`
28 | 4. `@dimen/material_menu_simple_item_height`
29 | 5. `@dimen/material_menu_simple_item_text_size`
30 |
31 |
32 |
33 | 1. `@dimen/material_menu_simple_edge_margin_horizontal_minimum`
34 |
35 |
36 | ## Divider
37 |
38 | | Name | Resource |
39 | | ---- | -------- |
40 | | Height | `@dimen/material_divider_height` |
41 | | Margin top | `@dimen/material_menu_simple_divider_margin_top` |
42 | | Margin bottom | `@dimen/material_menu_simple_divider_margin_bottom` |
43 |
44 |
45 | ---
46 |
47 | #### See also
48 |
49 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/menu.xml)
50 |
51 | - [Menus (Material design)](https://material.google.com/components/menus.html)
52 |
53 |
--------------------------------------------------------------------------------
/docs/component/steppers.md:
--------------------------------------------------------------------------------
1 | # Steppers
2 |
3 |
4 |
5 | 1. `@dimen/material_stepper_padding_top`
6 | 2. `@dimen/material_stepper_step_inactive_margin_bottom`
7 | 3. `@dimen/material_stepper_step_active_title_margin_bottom`
8 | 4. `@dimen/material_stepper_button_area_margin_top`
9 | 5. `@dimen/material_stepper_step_active_margin_bottom`
10 | 6. `@dimen/material_stepper_padding_horizontal`
11 | 7. `@dimen/material_stepper_overview_step_margin`
12 | 8. `@dimen/material_stepper_button_area_height`
13 | 9. `@dimen/material_stepper_button_gutter`
14 | 10. `@dimen/material_stepper_connector_margin`
15 | 11. `@dimen/material_stepper_step_circle_size`
16 | 12. `@dimen/material_stepper_connector_size`
17 | 13. `@dimen/material_stepper_step_title_text_size` and `@color/material_stepper_step_title_text_color`
18 | 14. `@dimen/material_stepper_step_subtitle_text_size` and `@color/material_stepper_step_subtitle_text_color`
19 | 15. `@dimen/material_stepper_step_circle_text_size` and `@color/material_stepper_step_circle_text_color`
20 | 16. App primary color or `@color/material_stepper_step_active_circle_color_default`
21 | 17. `@color/material_stepper_connector_color`
22 | 18. `@color/material_stepper_step_inactive_circle_color`
23 |
24 |
25 | ---
26 |
27 | #### See also
28 |
29 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/stepper.xml)
30 |
31 | - [Steppers (Material design)](https://material.google.com/components/steppers.html)
32 |
33 |
--------------------------------------------------------------------------------
/docs/component/subheaders.md:
--------------------------------------------------------------------------------
1 | # Subheaders
2 |
3 | ## Text style
4 |
5 | | Name | Resource |
6 | | ---- | -------- |
7 | | Text size | `@dimen/material_subheader_text_size` |
8 | | Default text color | `@color/material_subheader_text_color_default` |
9 |
10 | Text color can also be the primary color of the app.
11 |
12 |
13 | ## Size and alignment
14 |
15 | | Name | Resource |
16 | | ---- | -------- |
17 | | Height | `@dimen/material_subheader_height` |
18 | | Padding start | `@dimen/material_subheader_padding_start` |
19 |
20 | For lists, use the same alignment values as the list item text.
21 |
22 |
23 | ---
24 |
25 | #### See also
26 |
27 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/subheader.xml)
28 |
29 | - [Buttons (Material design)](https://material.google.com/components/subheaders.html)
30 |
31 |
--------------------------------------------------------------------------------
/docs/component/tooltips.md:
--------------------------------------------------------------------------------
1 | # Tooltips
2 |
3 | ## Elevation
4 |
5 | The elevation is defined as `@dimen/material_tooltip_elevation`.
6 |
7 | ## General values
8 |
9 |
10 |
11 | 1. `@dimen/material_tooltip_height`
12 | 2. `@dimen/material_tooltip_padding_horizontal`
13 | 3. `@dimen/material_tooltip_margin_top`
14 | 4. `@dimen/material_tooltip_text_size`
15 | 5. `@dimen/material_tooltip_color`
16 |
17 |
18 | ## Edge margin
19 |
20 |
21 |
22 | 1. `@dimen/material_tooltip_edge_margin_minimum`
23 |
24 |
25 | ---
26 |
27 | #### See also
28 |
29 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-component/values/tooltip.xml)
30 |
31 | - [Tooltips (Material design)](https://material.google.com/components/tooltips.html)
32 |
33 |
--------------------------------------------------------------------------------
/docs/css/extra.css:
--------------------------------------------------------------------------------
1 |
2 | .logo {
3 | display: block;
4 | margin: 0 auto;
5 | }
6 |
7 | .project-desc {
8 | text-align: center;
9 | }
10 |
11 | .figure {
12 | width: 360px;
13 | }
14 |
15 | .figure-large {
16 | width: 720px;
17 | }
18 |
19 | .color-preview {
20 | width: 100%;
21 | height: 20px;
22 | }
23 |
24 | a {
25 | color: #2196F3;
26 | }
27 |
28 | a:hover {
29 | color: #2979FF;
30 | }
31 |
32 | body {
33 | color: #000; /* Fallback for older browsers */
34 | color: rgba(0, 0, 0, 0.87);
35 |
36 | background-color: #FAFAFA;
37 | }
38 |
39 | .table-striped>tbody>tr:nth-child(odd)>td, .table-striped>tbody>tr:nth-child(odd)>th {
40 | background-color: #EEEEEE;
41 | }
42 |
43 | .navbar-default {
44 | background-color: #1976D2;
45 | border-color: #1565C0;
46 | }
47 |
48 | .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus, .navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus {
49 | color: #FFF;
50 | background-color: #1E88E5;
51 | }
52 |
53 | .navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:hover, .navbar-default .navbar-nav>.open>a:focus {
54 | color: #FFF;
55 | background-color: #1E88E5;
56 | }
57 |
58 | .dropdown-menu>li>a:hover, .dropdown-menu>li>a:focus {
59 | background-color: #1E88E5;
60 | }
61 |
62 | .dropdown-menu>.active>a, .dropdown-menu>.active>a:hover, .dropdown-menu>.active>a:focus {
63 | background-color: #1E88E5;
64 | }
65 |
66 |
--------------------------------------------------------------------------------
/docs/images/components_bottomnavigation_spec_fixed1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_bottomnavigation_spec_fixed1.png
--------------------------------------------------------------------------------
/docs/images/components_bottomnavigation_spec_fixed2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_bottomnavigation_spec_fixed2.png
--------------------------------------------------------------------------------
/docs/images/components_bottomnavigation_spec_shifting1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_bottomnavigation_spec_shifting1.png
--------------------------------------------------------------------------------
/docs/images/components_bottomnavigation_spec_shifting2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_bottomnavigation_spec_shifting2.png
--------------------------------------------------------------------------------
/docs/images/components_bottomnavigation_spec_shifting3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_bottomnavigation_spec_shifting3.png
--------------------------------------------------------------------------------
/docs/images/components_bottomsheets_grid_specs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_bottomsheets_grid_specs.png
--------------------------------------------------------------------------------
/docs/images/components_bottomsheets_list_header_specs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_bottomsheets_list_header_specs.png
--------------------------------------------------------------------------------
/docs/images/components_bottomsheets_list_headerless_specs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_bottomsheets_list_headerless_specs.png
--------------------------------------------------------------------------------
/docs/images/components_buttons_flat_color.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_buttons_flat_color.png
--------------------------------------------------------------------------------
/docs/images/components_buttons_raised_color.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_buttons_raised_color.png
--------------------------------------------------------------------------------
/docs/images/components_buttons_size.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_buttons_size.png
--------------------------------------------------------------------------------
/docs/images/components_buttons_toggle_icons_color.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_buttons_toggle_icons_color.png
--------------------------------------------------------------------------------
/docs/images/components_card_actions_horizontal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_card_actions_horizontal.png
--------------------------------------------------------------------------------
/docs/images/components_card_actions_icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_card_actions_icons.png
--------------------------------------------------------------------------------
/docs/images/components_card_actions_vertical.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_card_actions_vertical.png
--------------------------------------------------------------------------------
/docs/images/components_card_layout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_card_layout.png
--------------------------------------------------------------------------------
/docs/images/components_card_media_in_title.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_card_media_in_title.png
--------------------------------------------------------------------------------
/docs/images/components_card_media_shrunk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_card_media_shrunk.png
--------------------------------------------------------------------------------
/docs/images/components_card_supporting_text.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_card_supporting_text.png
--------------------------------------------------------------------------------
/docs/images/components_card_title_large.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_card_title_large.png
--------------------------------------------------------------------------------
/docs/images/components_card_title_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_card_title_small.png
--------------------------------------------------------------------------------
/docs/images/components_chip_basic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_chip_basic.png
--------------------------------------------------------------------------------
/docs/images/components_chip_contact_open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_chip_contact_open.png
--------------------------------------------------------------------------------
/docs/images/components_chip_deletable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_chip_deletable.png
--------------------------------------------------------------------------------
/docs/images/components_chips_contact_closed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_chips_contact_closed.png
--------------------------------------------------------------------------------
/docs/images/components_dialogs_actions_side.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_dialogs_actions_side.png
--------------------------------------------------------------------------------
/docs/images/components_dialogs_actions_stacked.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_dialogs_actions_stacked.png
--------------------------------------------------------------------------------
/docs/images/components_dialogs_content.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_dialogs_content.png
--------------------------------------------------------------------------------
/docs/images/components_expansionpanel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_expansionpanel.png
--------------------------------------------------------------------------------
/docs/images/components_fab_edge_margin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_fab_edge_margin.png
--------------------------------------------------------------------------------
/docs/images/components_fab_size.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_fab_size.png
--------------------------------------------------------------------------------
/docs/images/components_grid_list_footer_header.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_grid_list_footer_header.png
--------------------------------------------------------------------------------
/docs/images/components_lists_avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_lists_avatar.png
--------------------------------------------------------------------------------
/docs/images/components_lists_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_lists_icon.png
--------------------------------------------------------------------------------
/docs/images/components_lists_text.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_lists_text.png
--------------------------------------------------------------------------------
/docs/images/components_lists_types.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_lists_types.png
--------------------------------------------------------------------------------
/docs/images/components_menu_simple_dimension.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_menu_simple_dimension.png
--------------------------------------------------------------------------------
/docs/images/components_menu_simple_edge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_menu_simple_edge.png
--------------------------------------------------------------------------------
/docs/images/components_stepper.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_stepper.png
--------------------------------------------------------------------------------
/docs/images/components_tooltip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_tooltip.png
--------------------------------------------------------------------------------
/docs/images/components_tooltip_edge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/components_tooltip_edge.png
--------------------------------------------------------------------------------
/docs/images/layout_metrics_baseline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/layout_metrics_baseline.png
--------------------------------------------------------------------------------
/docs/images/layout_metrics_incremental.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/layout_metrics_incremental.png
--------------------------------------------------------------------------------
/docs/images/layout_metrics_keyline_list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/layout_metrics_keyline_list.png
--------------------------------------------------------------------------------
/docs/images/layout_responsive_content_hierarchy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/layout_responsive_content_hierarchy.png
--------------------------------------------------------------------------------
/docs/images/layout_structure_appbar_common_values.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/layout_structure_appbar_common_values.png
--------------------------------------------------------------------------------
/docs/images/layout_structure_appbar_phone_default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/layout_structure_appbar_phone_default.png
--------------------------------------------------------------------------------
/docs/images/layout_structure_appbar_phone_extended.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/layout_structure_appbar_phone_extended.png
--------------------------------------------------------------------------------
/docs/images/logo-title.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/logo-title.png
--------------------------------------------------------------------------------
/docs/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/esnaultdev/MaterialValues/dc7352a356847c7649c0f3faf9a0b01413ad7907/docs/images/logo.png
--------------------------------------------------------------------------------
/docs/index.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
All the values from the Material Design guidelines defined in resources for Android.
4 | 5 | --- 6 | 7 | ## Documentation 8 | 9 | All the values in this documentation use the xml reference representation. 10 | 11 | You can also use them programmatically using `material.values.R` 12 | 13 | For example: 14 | 15 | | Xml reference | Code reference | 16 | | :--- | :--- | 17 | | `@color/material_color_green_primary` | `R.color.material_color_green_primary` 18 | | `@dimen/material_list_two_line_dense_height` | `R.dimen.material_list_two_line_dense_height` 19 | | `@dimen/material_elevation_card_raised` | `R.dimen.material_elevation_card_raised` 20 | | `@dimen/material_typography_regular_title_text_size` | `R.dimen.material_typography_regular_title_text_size` 21 | 22 | 23 | --- 24 | 25 | ## Missing values 26 | 27 | If a section of the Material Design specs is not included, it may be because it has no values or is only available on desktop. 28 | 29 | Note that the values for the following components are not available as they are already well implemented in Android: 30 | 31 | - Selection controls 32 | - Sliders 33 | - Snackbars & toasts 34 | - Tabs 35 | - Text fields 36 | 37 | --- 38 | 39 | ## Disclaimer 40 | 41 | Most of the visuals come directly from the [Material design specifications](https://material.google.com), and are property of Google. 42 | 43 | -------------------------------------------------------------------------------- /docs/layout/elevation.md: -------------------------------------------------------------------------------- 1 | # Elevation 2 | 3 | | Component | Resource | 4 | | --------- | -------- | 5 | | App bar | `@dimen/material_elevation_app_bar` | 6 | | Flat button | `@dimen/material_elevation_flat_button` | 7 | | Raised button (resting) | `@dimen/material_elevation_raised_button_resting` | 8 | | Raised button (pressed) | `@dimen/material_elevation_raised_button_pressed` | 9 | | Floating action button (resting) | `@dimen/material_elevation_fab_resting` | 10 | | Floating action button (pressed) | `@dimen/material_elevation_fab_pressed` | 11 | | Card (resting) | `@dimen/material_elevation_card_resting` | 12 | | Card (raised) | `@dimen/material_elevation_card_raised` | 13 | | Menu | `@dimen/material_elevation_menu` | 14 | | Submenu (increment for each level) | `@dimen/material_elevation_submenu_increment` | 15 | | Dialog | `@dimen/material_elevation_dialog` | 16 | | Navigation drawer | `@dimen/material_elevation_nav_drawer` | 17 | | Right drawer | `@dimen/material_elevation_right_drawer` | 18 | | Bottom sheet (modal) | `@dimen/material_elevation_bottom_sheet_modal` | 19 | | Refresh indicator | `@dimen/material_elevation_refresh_indicator` | 20 | | Search bar (resting) | `@dimen/material_elevation_search_bar_resting` | 21 | | Search bar (scrolled) | `@dimen/material_elevation_search_bar_scrolled` | 22 | | Snackbar | `@dimen/material_elevation_snackbar` | 23 | | Switch | `@dimen/material_elevation_switch` | 24 | | Bottom navigation bar | `@dimen/material_elevation_bottom_nav_bar` | 25 | | Chip | `@dimen/material_elevation_chip` | 26 | | Contact chip (closed) | `@dimen/material_elevation_contact_chip_closed` | 27 | | Contact chip (open) | `@dimen/material_elevation_contact_chip_open` | 28 | | Tooltip | `@dimen/material_elevation_tooltip` | 29 | 30 | These values can also be referenced from their component-related values. 31 | 32 | --- 33 | 34 | #### See also 35 | 36 | - [Raw values](https://github.com/AoDevBlue/MaterialValues/blob/master/material-values/src/main/res-layout/values/elevation.xml) 37 | 38 | - [Elevation (Material design)](https://material.google.com/material-design/elevation-shadows.html) 39 | 40 | -------------------------------------------------------------------------------- /docs/layout/keylines.md: -------------------------------------------------------------------------------- 1 | #Metrics & Keylines 2 | 3 | ## Baseline grid 4 | 5 |