472 Commits

Author SHA1 Message Date
dniz
d1cd5d451f Only use window insets for Snackbar (BaseTransientBottomBar) bottom margin if
anchor view is not provided

PiperOrigin-RevId: 230532747
2019-01-25 13:54:48 -05:00
shuhart
ce2af89a1d [IndicatorViewController] Fix a caption view animations issue when you set two error subsequently.
Resolves https://github.com/material-components/material-components-android/pull/254

GIT_ORIGIN_REV_ID=e30dc1cac2a30394128a1ffcf82f8a995b787d90
PiperOrigin-RevId: 230405237
2019-01-22 17:07:29 -05:00
leticiars
ef0ca8d774 Updating default colors of password toggle in text fields.
PiperOrigin-RevId: 230401355
2019-01-22 17:06:37 -05:00
marianomartin
c20c2a4330 Fix DrawerLayout with NavigationView insetForeground
PiperOrigin-RevId: 230398984
2019-01-22 17:06:01 -05:00
dniz
4f75ec6daa Update FAB to respond to themed cornerFamily
- 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
2019-01-22 17:03:27 -05:00
dniz
80aedb96ab Update AppBarLayout to new NestedScrolling3 API
Fixes issue where item click is ignored within one second of fling

PiperOrigin-RevId: 229957998
2019-01-18 14:30:27 -05:00
食梦兽
7caa7139c1 Height increase the bottomMargin of the view
Because the Behavior is to slide down to disappear, the more reasonable sliding distance should be the height of the view plus the bottomMargin of the view.

Resolves https://github.com/material-components/material-components-android/pull/253

GIT_ORIGIN_REV_ID=77073b466107d2741c5688e06d7591a28913dcba
PiperOrigin-RevId: 229931959
2019-01-18 14:28:52 -05:00
ldjesper
3101512737 Remove package from .gradle file
PiperOrigin-RevId: 229743694
2019-01-18 14:25:04 -05:00
melaniegoetz
0f9b84e51f Allow public access of Behavior
PiperOrigin-RevId: 229651276
2019-01-18 14:23:51 -05:00
ldjesper
6a89dfd24a Current Android Date Picker Demos
PiperOrigin-RevId: 229592313
2019-01-18 14:22:48 -05:00
ldjesper
3b2186fb2c Reduces inset margins for small devices
PiperOrigin-RevId: 229549538
2019-01-18 14:17:11 -05:00
marianomartin
74b2ddfd6e Add checked icon tinting for MaterialCardView
PiperOrigin-RevId: 229429322
2019-01-18 14:15:16 -05:00
marianomartin
0a5d7e2b57 Add workaround to force ripple to redraw on P
PiperOrigin-RevId: 229370645
2019-01-18 14:14:31 -05:00
dniz
11df79f95c Clean up Gradle build shorthands for appcompat/androidx libraries
PiperOrigin-RevId: 229369959
2019-01-18 14:13:26 -05:00
melaniegoetz
41daf802f1 Fix NPE in BottomSheetBehavior onViewReleased
PiperOrigin-RevId: 229215869
2019-01-18 14:11:13 -05:00
dniz
03cf027bc7 Deprecate Experimental annotation and remove from Shapes
PiperOrigin-RevId: 229200655
2019-01-18 14:10:16 -05:00
marianomartin
2c1d3d99e0 Fix deprecated getEdgePath method
PiperOrigin-RevId: 229195616
2019-01-18 14:09:20 -05:00
denis-kim
e49cd32a43 Fix wrong position and state when touches settling view
1) When touches normal child view in settling bottom sheet,
the state goes to STATE_EXPANDED or STATE_COLLAPSED by SettleRunnable.
It should be STATE_DRAGGING.
SettleRunnable’s targetState should be ignored when settling is aborted.

2) When touches nested scroll child view in settling bottom sheet,
the settling animation is not stopped.
In settling state, the child view should be captured, not the nested scroll child.

Fixes: https://issuetracker.google.com/issues/119289861
Test: Touch or drag the settling bottom sheet

GIT_ORIGIN_REV_ID=514e20ad10aafcc6e95015d95e1efc888d93bed7
PiperOrigin-RevId: 228944484
2019-01-18 14:02:59 -05:00
Material Design Team
9dab50e145 Expose methods for fine grained control of TabLayout animation
Makes the following methods public:
- setScrollPosition(int, float, boolean, boolean)
- selectTab(Tab)
- selectTab(Tab, boolean)

This makes it possible to separate the link between a TabLayout and a ViewPager to another class.

PiperOrigin-RevId: 228887919
2019-01-18 14:01:38 -05:00
melaniegoetz
685f244e2e Animate Bottomsheet shape corner transitions
PiperOrigin-RevId: 228756397
2019-01-10 17:20:37 -05:00
marianomartin
eeba1619e9 Resubmit fix for MaterialButton padding bug
PiperOrigin-RevId: 228723499
2019-01-10 17:18:36 -05:00
marianomartin
8b7ec0c80e Add check drawable when card is selected.
PiperOrigin-RevId: 228715367
2019-01-10 17:17:34 -05:00
dniz
a4964594a1 Add MaterialShapeDrawable setElevation(float) and deprecate setShadowElevation(int)
PiperOrigin-RevId: 228572421
2019-01-10 17:16:43 -05:00
marianomartin
51bee714f6 Preserve icon after updating menus in BottomNav
PiperOrigin-RevId: 228525610
2019-01-10 17:11:43 -05:00
marianomartin
1220e66ce1 Automated g4 rollback of changelist 228351080
PiperOrigin-RevId: 228386136
2019-01-10 16:50:12 -05:00
marianomartin
218225008a Update stroke instead of creating background again
PiperOrigin-RevId: 228351080
2019-01-10 16:49:24 -05:00
marianomartin
5ef4727d84 Only use BorderDrawable in fab for Rounded Rects
PiperOrigin-RevId: 228350250
2019-01-10 16:48:03 -05:00
ldjesper
499dc02f8c Respect dialogCornerRadius in MaterialAlertDialogBuilders.
PiperOrigin-RevId: 228337335
2019-01-10 16:46:42 -05:00
gauthams
32db2e2af1 Update shape path edge length to prevent concave path
PiperOrigin-RevId: 228238196
2019-01-10 16:35:58 -05:00
leticiars
872cae3400 Updating MDC text field text appearance.
PiperOrigin-RevId: 228150532
2019-01-10 16:34:41 -05:00
marianomartin
0c00762410 Resubmit card view ripple changes
PiperOrigin-RevId: 227909348
2019-01-10 16:30:51 -05:00
marianomartin
c4f014b192 Add back getPathForSize(int int, Path) to MaterialShapeDrawable.
PiperOrigin-RevId: 227901559
2019-01-10 16:27:32 -05:00
leticiars
9a30c9331b Fixing focus order when text fields have the password toggle enabled.
PiperOrigin-RevId: 227893863
2019-01-10 16:18:57 -05:00
marianomartin
7adbeac4b2 Add back getEdgePath method without interpolation
PiperOrigin-RevId: 227877153
2019-01-10 16:07:46 -05:00
Material Design Team
3b066d9e65 Fix grammar in javadoc.
PiperOrigin-RevId: 227849552
2019-01-10 16:05:50 -05:00
marianomartin
637e1599ca Automated g4 rollback of changelist 227719145
PiperOrigin-RevId: 227738476
2019-01-10 16:04:39 -05:00
marianomartin
4cbe3b1ad2 Support checkable in card view, add states demo.
Also added a demo showing the different states

PiperOrigin-RevId: 227719145
2019-01-10 16:02:59 -05:00
afohrman
db4c951c0c Add annotations to hide protected MaterialShapeDrawable#drawShape() method.
MaterialShapeDrawable#drawShape() is protected, so it shouldn't be visible outside of the library group. This commit also adds documentation, since this method is protected.

PiperOrigin-RevId: 227696166
2019-01-10 16:01:24 -05:00
isabellekim
0055c665af Remember the selected item when adding items to BottomNavigation's menu
PiperOrigin-RevId: 227140261
2019-01-10 15:53:25 -05:00
isabellekim
bd994a109a Update icon tint alpha for colored BottomNav to be 0.6 per spec.
PiperOrigin-RevId: 227056603
2019-01-10 15:50:41 -05:00
connieshi
6c70169e8d Update chipgroup spacing attribute documentation to clarify that it doesn't apply to hidden chips.
PiperOrigin-RevId: 226498090
2018-12-21 16:29:20 -05:00
gauthams
11ae93ddc1 Refactor custom view inflation logic into shouldInflateAppCompatButton method, and make it protected rather than private.
PiperOrigin-RevId: 226256921
2018-12-21 11:34:51 -05:00
gauthams
b07eb82f31 Fix MaterialButton inflation issue for API 24 and 25
PiperOrigin-RevId: 226235558
2018-12-21 11:33:46 -05:00
ldjesper
46ce278ebb Add Dialogs to ShapeThemeingDemo and fix Overlay ordering
PiperOrigin-RevId: 226213645
2018-12-21 11:32:29 -05:00
ldjesper
52c5e72d81 Remove top level dialog attributes in favor of materialAlertDialogTheme
PiperOrigin-RevId: 226210511
2018-12-21 11:30:35 -05:00
marianomartin
6a7b1b2ce2 Mutate background drawable before changing tint
PiperOrigin-RevId: 226181425
2018-12-21 11:25:39 -05:00
connieshi
50d133ef03 Update chip to support dynamically changing texts in RTL layout.
PiperOrigin-RevId: 226174458
2018-12-21 11:24:38 -05:00
connieshi
3d23dbeac2 Fix logic to delegate text rendering to ChipDrawable instead of Chip.
Delegating text rendering to ChipDrawable breaks the api contract so this is for testing purposes only.

PiperOrigin-RevId: 226001080
2018-12-21 11:15:02 -05:00
Material Design Team
56c22ed0f7 Migrate Cardview android support libraries to androidx.
PiperOrigin-RevId: 225886550
2018-12-21 11:13:36 -05:00
marianomartin
055a791ae2 Support materialThemeOverlay on FloatingActionButton
PiperOrigin-RevId: 225857520
2018-12-21 11:09:03 -05:00