For that reason, users should opt to use the start icon API instead of setting a start/left compound drawable on the text field's edit text.
PiperOrigin-RevId: 238984066
The catalog was setting the legacy bottom nav's android:background, which was overriding the background and ruining the contrast ratios.
PiperOrigin-RevId: 238539046
When AppBarLayout is used with a CollapsingToolbarLayout
child, it currently does not handle WindowInsets
very well. This commit fixes that by properly handling
insets.
The primary issue is when an AppBarLayout is used
with a single Toolbar (very common use case), where
the Toolbar will currently be displayed behind the status bar.
Another issue is with HeaderScrollingViewBehavior.
To workaround CoordinatorLayout using its 'compatible measuring'
for insets, the behavior manually sets the scrolling view to fit
system windows. This has other issues though because
that view will get padded in. Fixed by manually adding the insets
back into the measured dimensions.
Also updated the catalog layouts to make use of
android:fitsSystemWindows=true
Resolves https://github.com/material-components/material-components-android/pull/299
PiperOrigin-RevId: 238396626
A user-specified icon can now be set via app:endIconMode="custom" and attributes app:endIconDrawable and app:endIconContentDescription. It is also possible to set a custom OnClickListener via TextInputLayout's end icon API.
PiperOrigin-RevId: 234671237
It's a common use case to want to mix up buttons with outlined buttons and an attribute facilitates reusing layouts with different themes.
PiperOrigin-RevId: 234189427
Allow the ThemeSwitcher to change shape sizes also change it to a BottomSheetdialogFragment to see the content more clearly.
PiperOrigin-RevId: 233839250
Calling activity recreate on the ThemeSwitcher causes the default demo to be launched again
when pressing back which is annoying. If the activity gets recreated for another reason this also repros.
Checking for the bundle to be null seems a reasonable way to only do it the first time.
PiperOrigin-RevId: 233610350
- Remove hardcoded "rounded" corner family from FAB shapeAppearanceOverlay
- Remove BottomAppBar shape toggle override from demo (now that we have a
global switcher)
- Update BottomAppBar demo to base top edge on FAB shape appearance
PiperOrigin-RevId: 229971238