1952 Commits

Author SHA1 Message Date
Material Design Team
b4982f9cdc [BottomSheet] Adds additional methods that are restricted to the library. They will be used for Experiment and deleted/revised after experiment.
PiperOrigin-RevId: 378874986
2021-06-14 18:32:13 +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
Material Design Team
ed719b2ad9 Update @SuppressWarnings annotations for go/nullness diagnostics
PiperOrigin-RevId: 377367820
2021-06-09 18:06:34 +00:00
dniz
ae82585b79 [CollapsingToolbarLayout] Added experimental setRtlTextDirectionHeuristicsEnabled() method
PiperOrigin-RevId: 377044268
2021-06-02 16:47:05 -04:00
hunterstich
b3b12f9051 Automated g4 rollback of changelist 372931550
PiperOrigin-RevId: 375483052
2021-05-24 17:11:44 -07:00
haodong
e3343326ab [MaterialToolbar & BottomAppBar] Updated navigationIconTint implementation to mutate drawable to prevent tinting drawable globally
Resolves https://github.com/material-components/material-components-android/issues/2207

PiperOrigin-RevId: 375130975
2021-05-21 14:12:02 -07:00
dniz
5c147722ed [CollapsingToolbarLayout] Added support for expanded and collapsed title text color attributes
PiperOrigin-RevId: 375103699
2021-05-21 14:10:28 -07:00
conradchen
7adfd93d80 [TooltipDrawable] Adding android:textColor support
PiperOrigin-RevId: 374887222
2021-05-20 14:03:30 -07:00
haodong
f9687312cb [ProgressIndicator] Fix first animated progress update issue.
Resolves https://github.com/material-components/material-components-android/issues/2051

PiperOrigin-RevId: 374712804
2021-05-19 13:23:36 -07:00
hunterstich
0ef2e910ce [TopAppBar] Fix title fade mode collapsing title position errors.
Flinging the AppBarLayout can cause a negative number to be passed to CollapsingTextHelper#calculateOffsets, causing the collapsed title in fade mode to be positioned incorrectly.

PiperOrigin-RevId: 374704850
2021-05-19 13:21:52 -07:00
dniz
9b92fd8f46 [TextAppearance] Added a TextAppearanceConfig.shouldLoadFontSynchronously() check to allow forcing synchronous font loading for edge cases
PiperOrigin-RevId: 374702022
2021-05-19 13:19:40 -07:00
dniz
841f229592 [CollapsingToolbarLayout] Fixed RTL text only laying out as RTL when actual text is RTL
PiperOrigin-RevId: 374663684
2021-05-19 11:00:25 -07:00
conradchen
b8c9f4949d [MaterialShapeDrawable] Move static paint initialization to static block
PiperOrigin-RevId: 374650659
2021-05-19 10:59:31 -07:00
conradchen
b420eab0bc [TimePicker] Make display divider styling more flexible
PiperOrigin-RevId: 373818786
2021-05-14 15:32:10 -04:00
afohrman
c92e6934d5 [TextInputLayout] Added a fade transition to placeholder TextView's appear and disappear.
The placeholder TextView previously appeared and disappeared with no fade, which led to a jarring effect and an overlap between the hint text and the placeholder text.

PiperOrigin-RevId: 373713144
2021-05-14 15:29:49 -04:00
conradchen
818f253ade [MaterialTimePicker] Make time text input fields stying more flexible
PiperOrigin-RevId: 373199267
2021-05-14 15:20:30 -04:00
Material Design Team
43cfc050f8 [Elevation] Added manual constructor for ElevationOverlayProvider.
Allow instantiating ElevationOverlayProvider without access to a Context object, e.g. in Drawables where only Resources and Theme might be available.

PiperOrigin-RevId: 372977696
2021-05-11 12:58:36 -04:00
conradchen
37f0ca1a97 [MaterialDatePicker] Make calendar day of week label stying more flexible
PiperOrigin-RevId: 372976792
2021-05-11 12:56:55 -04:00
Material Design Team
915336b36c Automated g4 rollback of changelist 372538097
PiperOrigin-RevId: 372931550
2021-05-11 12:55:35 -04:00
hunterstich
c7541833b7 [CollapsingToolbarLayout] Updated fade mode to allow expanded title to translate 1:1 with scrolling content.
PiperOrigin-RevId: 372565826
2021-05-07 12:27:54 -04:00
leticiars
87b50c6aee [TextInputLayout] Fixed cutout padding so text field outline doesn't overlap collapsed hint.
Resolves https://github.com/material-components/material-components-android/issues/2127

PiperOrigin-RevId: 372563674
2021-05-07 12:27:01 -04:00
hunterstich
bd4914dd8b [Badge] Support differing offsets for badges with/without text, support badge width and padding in styles.
PiperOrigin-RevId: 372538097
2021-05-07 12:25:52 -04:00
leticiars
73bf653ef2 Automated g4 rollback of changelist 372177002
PiperOrigin-RevId: 372384266
2021-05-07 12:16:55 -04:00
conradchen
5d092b75a6 [Color] Internal change
PiperOrigin-RevId: 372355438
2021-05-07 12:14:33 -04:00
leticiars
66b0c98a27 [TextInputLayout] Fixed cutout padding so text field outline doesn't overlap collapsed hint.
Resolves https://github.com/material-components/material-components-android/issues/2127

PiperOrigin-RevId: 372177002
2021-05-05 15:41:30 -04:00
dniz
f0ce498108 [CollapsingToolbarLayout] Added title line spacing and hyphenation frequency setters
PiperOrigin-RevId: 371920600
2021-05-05 09:40:38 -04:00
raajkumars
c5c7a74cef [MaterialButton] Updated Material Button style to set the preferred maximum width to 320dp.
PiperOrigin-RevId: 371151853
2021-04-29 14:53:13 -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
dniz
2c557b6833 [Elevation] Added elevation overlay accent color option
PiperOrigin-RevId: 371106569
2021-04-29 14:51:28 -04:00
haodong
0ed7c7675e [BottomAppBar] Adding the attr to set the color of navigation icon.
PiperOrigin-RevId: 370999656
2021-04-29 14:49:59 -04:00
hunterstich
586d5543e2 [AppBarLayout] Added compress scroll effect.
PiperOrigin-RevId: 370090494
2021-04-23 14:49:12 -04:00
dniz
0ad429db2a [TextAppearance] Updated TextAppearance to load font synchronously if its cached. Also updates lib to depend on 1.5.0-rc01 for the ResourcesCompat#getCachedFont method.
Used by CollapsingToolbarLayout, TextInputLayout, Chip, Badge, and Tooltip

PiperOrigin-RevId: 370071817
2021-04-23 14:40:21 -04:00
dniz
d2c7b719ce [Color] Added dimen resource for opacity of disabled background colors
PiperOrigin-RevId: 369736358
2021-04-22 14:55:55 -04:00
conradchen
b38a09f93e Automated g4 rollback of changelist 369683837
PiperOrigin-RevId: 369704013
2021-04-22 14:53:14 -04:00
Material Design Team
3891ca6c57 Automated g4 rollback of changelist 369658517
PiperOrigin-RevId: 369683837
2021-04-21 14:46:06 -04:00
conradchen
f617557ff9 [Color] Fix elevation overlay on time pickers
PiperOrigin-RevId: 369658517
2021-04-21 14:44:36 -04:00
nickrout
95a769c373 [Documentation] Improving navigation rail documentation.
PiperOrigin-RevId: 369436073
2021-04-20 15:18:22 -04:00
raajkumars
cd9e6204d8 [Dialog] Added support for full width buttons in dialogs.
PiperOrigin-RevId: 368853063
2021-04-16 18:21:25 -04:00
hunterstich
b4cca5b8a4 [FAB] Update FAB to use motion theming for show/hide animation.
PiperOrigin-RevId: 368831990
2021-04-16 18:03:35 -04:00
hunterstich
943c4f0eed [BottomNavigationView] Updated to explicitly read and set minimum height.
PiperOrigin-RevId: 368831987
2021-04-16 18:02:00 -04:00
hunterstich
166d9f6471 [NavigationBar] Updated indicator and label to use motion theming.
PiperOrigin-RevId: 368684603
2021-04-16 17:54:00 -04:00
dniz
be85a92a73 [CollapsingToolbarLayout] Added getLineCount() method
PiperOrigin-RevId: 368630070
2021-04-16 17:48:59 -04:00
leticiars
ce928fcb65 [Bottomsheets][Large Screens] Adding a max width for bottom sheets to optimize for large screens.
PiperOrigin-RevId: 368533002
2021-04-16 17:47:14 -04:00
raajkumars
82333cf59d Internal change
PiperOrigin-RevId: 368487188
2021-04-16 17:46:18 -04:00
Material Design Team
7fc9df5399 Automated g4 rollback of changelist 368429312
PiperOrigin-RevId: 368474895
2021-04-16 12:44:38 -04:00
dniz
2b2c69f773 [CollapsingToolbarLayout] Added getLineCount() method
PiperOrigin-RevId: 368429312
2021-04-16 12:43:47 -04:00
hunterstich
7eea2b25bc [Navigation bar] Add active indicator.
PiperOrigin-RevId: 368261456
2021-04-16 12:42:14 -04:00
raajkumars
7939c171df [MaterialButton] Updated Material Button style to set the preferred maximum width to 320dp.
PiperOrigin-RevId: 368242141
2021-04-13 14:25:05 -04:00
dniz
f0ac362968 [CollapsingToolbarLayout] Added support for multiline RTL when using fade title mode
PiperOrigin-RevId: 368237684
2021-04-13 14:24:14 -04:00
dniz
3ad232d829 [CollapsingToolbarLayout] Updated default multiline hyphenation frequency to StaticLayout.HYPHENATION_FREQUENCY_NORMAL
PiperOrigin-RevId: 368221065
2021-04-13 14:20:48 -04:00