578 Commits

Author SHA1 Message Date
conradchen
fabb5ea498 [M3][Divider] Create M3 styles
PiperOrigin-RevId: 393151662
2021-08-26 15:09:37 -04:00
jeremymuhia
5e98a056c1 [M3][Catalog][FAB] update FAB demos
PiperOrigin-RevId: 393138444
2021-08-26 14:45:19 -04:00
conradchen
2901012af5 [M3][DatePicker] Create M3 styles
PiperOrigin-RevId: 392982386
2021-08-26 14:43:23 -04:00
leticiars
864ef024ab [Catalog] Music player demo updates.
PiperOrigin-RevId: 392884977
2021-08-25 14:58:02 -04:00
conradchen
e5fb9d1fbd [M3][Card] Create M3 styles
PiperOrigin-RevId: 392875925
2021-08-25 14:57:05 -04:00
hunterstich
999b24783c [M3][NavigationBar] Add new navigation bar styles.
PiperOrigin-RevId: 392688526
2021-08-24 15:52:44 -04:00
pfthomas
6bfa5842b9 [M3][Button] Create M3 styles
PiperOrigin-RevId: 392680177
2021-08-24 15:51:48 -04:00
conradchen
febe25707c [M3][DynamicColor] Create dynamic color support in M3
PiperOrigin-RevId: 392425782
2021-08-23 09:46:04 -07:00
dsn5ft
ae20031806 [M3][Catalog] Update Catalog naming to Material 3
PiperOrigin-RevId: 392012855
2021-08-23 09:39:13 -07:00
dsn5ft
fb522a576b [M3][Catalog] Fixed filled text field demo style
PiperOrigin-RevId: 391978584
2021-08-23 09:34:25 -07:00
conradchen
60782a5d9b [M3][Tab] Create M3 styles
PiperOrigin-RevId: 391849752
2021-08-23 09:29:03 -07:00
hunterstich
7bcb917862 [M3][Typography] Update Font catalog demo to use new typescale.
PiperOrigin-RevId: 391820169
2021-08-23 09:26:49 -07:00
conradchen
edbc4e1f64 [M3][Textfield] Create M3 styles
PiperOrigin-RevId: 391773145
2021-08-23 09:22:14 -07:00
dsn5ft
f428f20829 [M3][Color] Updated colorPrimaryDark to point to colorPrimary
Also updated Catalog edge-to-edge logic to handle "light status bar", and default to edge-to-edge enabled for Q+

PiperOrigin-RevId: 391763801
2021-08-23 09:21:21 -07:00
dsn5ft
18490ff82d [M3][Top App Bar] Added new AppBarLayout, CollapsingToolbarLayout, and Toolbar styles and updated Catalog pages + demos
PiperOrigin-RevId: 391755524
2021-08-23 09:20:24 -07:00
dsn5ft
5d940f1ff8 [M3][Catalog] Update Catalog theme(s) to Material3 and fix Material3 date/time picker theme overlays
PiperOrigin-RevId: 391581833
2021-08-23 09:17:02 -07:00
Material Design Team
cbf7bcad59 Internal change
PiperOrigin-RevId: 386513223
2021-07-28 14:29:52 -04:00
leticiars
cc4a6040fd [Catalog] Small updates to music player demo.
PiperOrigin-RevId: 385011921
2021-07-22 10:12:08 -04:00
dsn5ft
aaa0444308 [AppBarLayout] Added support for statusBarForeground lift on scroll elevation overlay for edge to edge mode and updated demo
Helpful for the case where the Top App Bar text/icons are still visible underneath a transparent status bar, when the Top App Bar is scrolled up.

PiperOrigin-RevId: 384985602
2021-07-22 10:11:22 -04:00
conradchen
456f135627 [Button] Fix progress indicator is not shown when set as the icon
MaterialButton is using TextViewCompat.setCompoundDrawablesRelative() under the hood to implement setIcon() operation. TextViewCompat won't call its compound drawables' setVisible() method, on which we rely to start progress indicator drawables automatically.

Calls setVisible() explicitly to start progressing.

Also adds a demo to catalog.

Resolves https://github.com/material-components/material-components-android/issues/2095

PiperOrigin-RevId: 383483364
2021-07-08 15:58:13 +00:00
dniz
9ebf1a1387 [CollapsingToolbarLayout] Added option to force always applying system window inset top regardless of layout_height
PiperOrigin-RevId: 382286923
2021-07-01 06:49:33 -07:00
leticiars
782dffa8b7 [Divider] Added new Divider component to the library and Divider doc.
PiperOrigin-RevId: 381858673
2021-06-28 13:08:28 -07:00
leticiars
acf08f7640 [Divider] Added divider demo in catalog
PiperOrigin-RevId: 381249847
2021-06-28 12:47:45 -07:00
afohrman
a536a8068d [Motion] Extracted music player app into its own package and made transition demo depend on it.
PiperOrigin-RevId: 381100447
2021-06-24 13:04:57 -07:00
Material Design Team
5ec07aa65b Update Fragment libraries from androidx-platform-dev with build id #7476539(2021-06-20).
PiperOrigin-RevId: 380909299
2021-06-24 13:03:04 -07:00
haodong
209bad3299 [ProgressIndicator] Enabled switch from indeterminate mode to determinate mode while visible.
Resolves https://github.com/material-components/material-components-android/issues/1921

PiperOrigin-RevId: 378944543
2021-06-14 18:33:33 +00:00
afohrman
720088c5c2 [BottomNavigationView] Added deprecation Javadoc for BottomNavigationView#OnNavigationItemSelectedListener and BottomNavigationView#OnNavigationItemReselectedListener.
The listeners were deprecated in favor of `NavigationBarView#OnItemSelectedListener` and `NavigationBarView#OnItemReselectedListener`, but deprecation documentation was never added, so it's unclear what developers should use instead.

Also removed internal usages of these deprecated usages in the catalog and in tests.

PiperOrigin-RevId: 378021534
2021-06-09 18:20:52 +00:00
afohrman
c995ae200e [BottomAppBar] Improved Bottom App bar demo controls.
Changed the demo to use toggle button groups instead of a combination of "manual toggle buttons", regular buttons, and AppCompat toggle buttons. This creates consistency throughout the demo and makes it easier to understand which demo control modifies which feature of the BottomAppBar.

Also:
- Changed the hide on scroll demo control to use a switch, as opposed to a ToggleButton. It was previously very hard to tell which position was on and which was off; a switch does a better job of communicating on/off states.
- Added labels for the toggle groups, which makes it easier to understand which demo control applies to which aspect of the BAB.
PiperOrigin-RevId: 377132368
2021-06-02 16:47:39 -04:00
conradchen
65e99d02ee [Catalog] Make card view demo paddings aligned with spec
PiperOrigin-RevId: 375498559
2021-05-24 17:21:54 -07:00
conradchen
415ed744b0 [Catalog] Remove theme switcher implementation
PiperOrigin-RevId: 375473686
2021-05-24 17:09:47 -07:00
conradchen
2a23ef4050 [Catalog] Fix system navigation bar demo
PiperOrigin-RevId: 375091345
2021-05-21 14:09:31 -07:00
conradchen
ce84b5826c [Catalog] Replace theme switchers with preferences screen
PiperOrigin-RevId: 374948274
2021-05-21 11:49:15 -07:00
conradchen
7adfd93d80 [TooltipDrawable] Adding android:textColor support
PiperOrigin-RevId: 374887222
2021-05-20 14:03:30 -07:00
conradchen
6e7be6070c [Catalog] Add shape corner size preference to preferences screen
Also changes "shape" preference to "shape corner family" preference, and adds default options to both preferences.

PiperOrigin-RevId: 374704273
2021-05-19 13:20:30 -07:00
conradchen
832e43f7a5 [Catalog] Add shape preference to preferences screen
PiperOrigin-RevId: 374643731
2021-05-19 10:57:49 -07:00
conradchen
967745a2ea [Catalog preference] Fix catalog preference state restoring issue
PiperOrigin-RevId: 374268183
2021-05-19 10:45:47 -07:00
conradchen
3aa76dafaa [Catalog] Implement app preferences mechanism in Catalog
PiperOrigin-RevId: 373572141
2021-05-14 15:27:08 -04:00
Material Design Team
988681059f [Catalog] Refactored fab demos to improve alignment
PiperOrigin-RevId: 372158858
2021-05-05 15:40:38 -04:00
raajkumars
401a5a8d01 [Catalog] Added Navigation Rail demos to catalog.
PiperOrigin-RevId: 371904626
2021-05-05 09:39:35 -04:00
raajkumars
95da70589c [Catalog][Dialog] Removed full width button style and related dialog themes. Updated catalog dialog demo to showcase how to create dialogs with full width buttons.
PiperOrigin-RevId: 371146951
2021-04-29 14:52:19 -04:00
marianomartin
77421119f1 Internal Change
PiperOrigin-RevId: 370748830
2021-04-28 14:57:34 -04:00
afohrman
8140f559b8 Internal change.
PiperOrigin-RevId: 369500691
2021-04-21 14:43:09 -04:00
raajkumars
15daf58d53 [Catalog] Update dialog main demo fragment to allow subclasses to override the theme overlay resources used in the demo.
PiperOrigin-RevId: 369439455
2021-04-20 15:21:43 -04:00
raajkumars
633ef0ded8 [Catalog] Updated Catalog demo to show full width buttons in dialogs.
PiperOrigin-RevId: 368862589
2021-04-16 18:36:45 -04:00
Material Design Team
a200a5ef17 [NavigationRail] Moves OnNavigationItem listeners to the NavigationBarView class
to be easier used by developers and other libraries

An example of where the current implementation fails is in Jetpack Navigation component where we rely on setOnNavigationItemSelectedListener and the similar methods in NavigationBarView (setOnItemSelectedListener) are protected.

PiperOrigin-RevId: 367467206
2021-04-08 20:43:35 -04:00
connieshi
948738e618 [Badge][Toolbar] Fix badge offset bug when attached and detached from a menu item on a toolbar.
Added switch to toggle show/hide edit menu item and added button to increment badge number.

Moved logic to add badgedrawable to onCreateOptionsMenu so that a new badgedrawable is NOT added every time onPrepareOptionsMenu is called (e.g. opening the overflow menu)

Resolves https://github.com/material-components/material-components-android/issues/2129

PiperOrigin-RevId: 365033209
2021-03-25 11:28:18 -04:00
leticiars
81273acb26 [TextInputLayout][LargeScreens] Adding default, max and min widths for text fields to optimize for large screens.
PiperOrigin-RevId: 363660219
2021-03-18 12:54:05 -04:00
raajkumars
6a37a553e7 [Catalog] Updated catalog to showcase header view inside a Navigation Rail View.
PiperOrigin-RevId: 359796624
2021-03-03 13:22:58 -05:00
raajkumars
ae8b1858f3 [Catalog] Updated catalog to demonstrate navigation rail in compact style.
PiperOrigin-RevId: 359624175
2021-03-03 13:21:43 -05:00
raajkumars
4ff1440995 [Catalog] Updated Navigation Rail catalog demo to showcase a colored navigation rail with animated icons.
PiperOrigin-RevId: 359598831
2021-03-03 13:20:52 -05:00